Public Class methods
new()
Unset any permissions policy when reinitializing
[show source]
# File lib/roda/plugins/permissions_policy.rb 307 def initialize 308 super 309 @permissions_policy &&= nil 310 end
Public Instance methods
permissions_policy()
The current permissions policy to be used for this response.
[show source]
# File lib/roda/plugins/permissions_policy.rb 313 def permissions_policy 314 @permissions_policy ||= roda_class.opts[:permissions_policy].dup 315 end
skip_permissions_policy!()
Do not set a permissions policy header for this response.
[show source]
# File lib/roda/plugins/permissions_policy.rb 318 def skip_permissions_policy! 319 @skip_permissions_policy = true 320 end