method

protect_from_forgery

rails latest stable - Class: ActionController::RequestForgeryProtection

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.0.0) is shown here.

protect_from_forgery(options = {})
protected

No documentation available.

# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 89
      def protect_from_forgery(options = {})
        self.request_forgery_protection_token ||= :authenticity_token
        before_filter :verify_authenticity_token, options
      end