static public Method

RequestForgeryProtection.included(base)

There's no documentation for this item.

Source Code

# File 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
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.