Module: Roda::RodaPlugins::PermissionsPolicy::InstanceMethods
- Defined in:
- lib/roda/plugins/permissions_policy.rb
Instance Method Summary collapse
-
#permissions_policy {|policy| ... } ⇒ Object
If a block is given, yield the current permission policy.
Instance Method Details
#permissions_policy {|policy| ... } ⇒ Object
If a block is given, yield the current permission policy. Returns the current permissions policy.
298 299 300 301 302 |
# File 'lib/roda/plugins/permissions_policy.rb', line 298 def policy = @_response. yield policy if defined?(yield) policy end |