Module: SqAuth::InstanceMethods
- Defined in:
- lib/sq_auth.rb
Overview
self.included
Instance Method Summary collapse
- #access_for(*roles, &block) ⇒ Object (also: #draw_for)
- #accessed_by?(*roles) ⇒ Boolean
- #not_accessible_link(*roles) ⇒ Object
- #not_accessible_message ⇒ Object
Instance Method Details
#access_for(*roles, &block) ⇒ Object Also known as: draw_for
49 50 51 |
# File 'lib/sq_auth.rb', line 49 def access_for(*roles, &block) SqAuth.with_sq_auth([*roles], SqAuth.access.project_name, {:binding => binding}, &block) end |
#accessed_by?(*roles) ⇒ Boolean
54 55 56 |
# File 'lib/sq_auth.rb', line 54 def accessed_by?(*roles) SqAuth.access.sq_auth_filter([*roles]) end |