mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove method previous method if already defined.
This commit is contained in:
parent
e7c833fca9
commit
2f59cd6fd6
1 changed files with 1 additions and 0 deletions
|
@ -127,6 +127,7 @@ module ActionView
|
|||
|
||||
def say_no_to_protect_against_forgery!
|
||||
_helpers.module_eval do
|
||||
remove_method :protect_against_forgery? if method_defined?(:protect_against_forgery?)
|
||||
def protect_against_forgery?
|
||||
false
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue