class method self.included

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

self.included(base)

No documentation comment.

Parameters

base req
Source
# File actionpack/lib/action_controller/request_forgery_protection.rb, line 6
    def self.included(base)
      base.class_eval do
        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

Type at least 2 characters to search.

↑↓ navigate · open · esc close