class method
self.included
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
self.included(base)
No documentation comment.
Parameters
-
basereq
Source
# File actionpack/lib/action_controller/request_forgery_protection.rb, line 6
def self.included(base)
base.class_eval do
class_inheritable_accessor :request_forgery_protection_options
self.request_forgery_protection_options = {}
helper_method :form_authenticity_token
helper_method :protect_against_forgery?
end
base.extend(ClassMethods)
end
Defined in actionpack/lib/action_controller/request_forgery_protection.rb line 6
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::RequestForgeryProtection