Module: Roda::RodaPlugins::PermissionsPolicy::InstanceMethods

Defined in:
lib/roda/plugins/permissions_policy.rb

Instance Method Summary collapse

Instance Method Details

#permissions_policy {|policy| ... } ⇒ Object

If a block is given, yield the current permission policy. Returns the current permissions policy.

Yields:

  • (policy)


298
299
300
301
302
# File 'lib/roda/plugins/permissions_policy.rb', line 298

def permissions_policy
  policy = @_response.permissions_policy
  yield policy if defined?(yield)
  policy
end