Module: Card::View::Permission
- Included in:
- Card::View
- Defined in:
- lib/card/view/permission.rb
Overview
View permissions support view-specific permission handling
Views can be configured in view definitions
with the perms
directive, eg
# only render if user has permission to update card
view :myview, perms: :update do...
Instance Method Summary collapse
Instance Method Details
#view_perms ⇒ Object
11 12 13 |
# File 'lib/card/view/permission.rb', line 11 def view_perms @view_perms = setting(:perms) || :read end |