diff options
author | Emilio Tagua <miloops@gmail.com> | 2010-09-24 16:08:04 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2010-09-27 11:19:23 -0300 |
commit | 2f59cd6fd6c54bd55d4cd55f59cae413e961626a (patch) | |
tree | 6bac6f54c4a42870d4dc4bc7902055ac7545e83f | |
parent | e7c833fca9c18807245bf1a75cbb212a626e278c (diff) | |
download | rails-2f59cd6fd6c54bd55d4cd55f59cae413e961626a.tar.gz rails-2f59cd6fd6c54bd55d4cd55f59cae413e961626a.tar.bz2 rails-2f59cd6fd6c54bd55d4cd55f59cae413e961626a.zip |
Remove method previous method if already defined.
-rw-r--r-- | actionpack/lib/action_view/test_case.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/test_case.rb b/actionpack/lib/action_view/test_case.rb index ff35fb7df4..32fd8c5e21 100644 --- a/actionpack/lib/action_view/test_case.rb +++ b/actionpack/lib/action_view/test_case.rb @@ -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 |