Use remove possible method here.

This commit is contained in:
José Valim 2011-05-04 19:31:43 +02:00
parent 85b8a88d87
commit a93bd11b1d
1 changed files with 2 additions and 1 deletions

View File

@ -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