mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Remove method previous method if already defined.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user