Flowdock
method

protection_method_class

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: ActionController::RequestForgeryProtection::ClassMethods
protection_method_class(name) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 150
        def protection_method_class(name)
          ActionController::RequestForgeryProtection::ProtectionMethods.const_get(name.to_s.classify)
        rescue NameError
          raise ArgumentError, "Invalid request forgery protection method, use :null_session, :exception, or :reset_session"
        end
Register or log in to add new notes.