instance method say_no_to_protect_against_forgery!

Ruby on Rails 3.0.20

Since v3.0.20 Last seen in v6.0.6 Private

Available in: v3.0.20 v3.1.12 v3.2.22.5 v4.0.13 v4.1.16 v4.2.9 v5.2.8.1 v6.0.6

Signature

say_no_to_protect_against_forgery!()

No documentation comment.

Source
# File actionpack/lib/action_view/test_case.rb, line 128
      def say_no_to_protect_against_forgery!
        _helpers.module_eval do
          def protect_against_forgery?
            false
          end
        end
      end

Defined in actionpack/lib/action_view/test_case.rb line 128 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionView::TestCase::Behavior

Type at least 2 characters to search.

↑↓ navigate · open · esc close