mirror of https://github.com/rails/rails
Use remove possible method here.
This commit is contained in:
parent
85b8a88d87
commit
a93bd11b1d
|
@ -1,5 +1,6 @@
|
|||
require 'active_support/core_ext/object/blank'
|
||||
require 'active_support/core_ext/module/delegation'
|
||||
require 'active_support/core_ext/module/remove_method'
|
||||
require 'action_controller'
|
||||
require 'action_controller/test_case'
|
||||
require 'action_view'
|
||||
|
@ -129,7 +130,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?)
|
||||
remove_possible_method :protect_against_forgery?
|
||||
def protect_against_forgery?
|
||||
false
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue