Module: Roda::RodaPlugins::PermissionsPolicy::ResponseMethods

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

Instance Method Summary collapse

Instance Method Details

#initializeObject

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_policyObject

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
  @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!
  @skip_permissions_policy = true
end