module ActionController::RequestForgeryProtection::ClassMethods
Public Instance Methods
protect_from_forgery(options = {})
click to toggle source
# File lib/rails3_csrf_patcher/patch.rb, line 7 def protect_from_forgery(options = {}) self.request_forgery_protection_token ||= :authenticity_token prepend_before_filter :verify_authenticity_token, options append_after_filter :verify_same_origin_request end