module Fortress::Controller::ClassMethods

Class methods added to all controllers in a Rails application.

@author zedtux

Public Instance Methods

fortress_allow(actions, options = {}) click to toggle source
# File lib/fortress/controller.rb, line 45
def fortress_allow(actions, options = {})
  (options.blank? || actions == :all) &&
    Mechanism.authorise!(name, actions)

  Mechanism.parse_options(self, actions, options) if options.present?
end