Module: HasRoles::AuthorizationHelper
- Defined in:
- lib/has_roles/authorization_helper.rb
Overview
Provides helper methods for determining whether users are authorized for a given url.
Class Method Summary (collapse)
-
+ (Object) included(base)
:nodoc:.
Class Method Details
+ (Object) included(base)
:nodoc:
5 6 7 8 9 10 |
# File 'lib/has_roles/authorization_helper.rb', line 5 def self.included(base) #:nodoc: base.class_eval do helper_method :authorized? helper_method :authorized_for? end end |