Module: Tight::Access::ClassMethods
- Defined in:
- lib/tight-auth/access.rb
Instance Method Summary collapse
-
#reset_access! ⇒ Object
Empties the list of permission.
-
#set_access(*args) ⇒ Object
Allows access to action with objects.
Instance Method Details
#reset_access! ⇒ Object
Empties the list of permission.
70 71 72 |
# File 'lib/tight-auth/access.rb', line 70 def reset_access! .clear! end |
#set_access(*args) ⇒ Object
Allows access to action with objects.
85 86 87 88 89 |
# File 'lib/tight-auth/access.rb', line 85 def set_access(*args) = args. [:object] ||= Array(@_controller).first.to_s.singularize.to_sym if @_controller.present? .add(*args, ) end |