Module: Exits::ActionController::Helpers

Extended by:
ActiveSupport::Concern
Defined in:
lib/exits/action_controller/helpers.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#restrict_routes!Object



26
27
28
29
30
# File 'lib/exits/action_controller/helpers.rb', line 26

def restrict_routes!
  unless self.class.rules.authorized?(self.class, current_user.class, action_name)
    restricted!
  end
end