Module: Roda::RodaPlugins::PermissionsPolicy::ResponseMethods
- Defined in:
- lib/roda/plugins/permissions_policy.rb
Instance Method Summary collapse
-
#initialize ⇒ Object
Unset any permissions policy when reinitializing.
-
#permissions_policy ⇒ Object
The current permissions policy to be used for this response.
-
#skip_permissions_policy! ⇒ Object
Do not set a permissions policy header for this response.
Instance Method Details
#initialize ⇒ Object
Unset any permissions policy when reinitializing
307 308 309 310 |
# File 'lib/roda/plugins/permissions_policy.rb', line 307 def initialize super @permissions_policy &&= nil end |
#permissions_policy ⇒ Object
The current permissions policy to be used for this response.
313 314 315 |
# File 'lib/roda/plugins/permissions_policy.rb', line 313 def @permissions_policy ||= roda_class.opts[:permissions_policy].dup end |
#skip_permissions_policy! ⇒ Object
Do not set a permissions policy header for this response.
318 319 320 |
# File 'lib/roda/plugins/permissions_policy.rb', line 318 def @skip_permissions_policy = true end |