Skip to content
This repository
Browse code

Remove method previous method if already defined.

  • Loading branch information...
commit 2f59cd6fd6c54bd55d4cd55f59cae413e961626a 1 parent e7c833f
Emilio Tagua authored September 24, 2010

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  actionpack/lib/action_view/test_case.rb
1  actionpack/lib/action_view/test_case.rb
@@ -127,6 +127,7 @@ def response_from_page_or_rjs
127 127
 
128 128
       def say_no_to_protect_against_forgery!
129 129
         _helpers.module_eval do
  130
+          remove_method :protect_against_forgery? if method_defined?(:protect_against_forgery?)
130 131
           def protect_against_forgery?
131 132
             false
132 133
           end

0 notes on commit 2f59cd6

Please sign in to comment.
Something went wrong with that request. Please try again.