module ActionController::RequestForgeryProtection::ClassMethods

def protection_method_class(name)

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