module Roda::RodaPlugins::PermissionsPolicy
def self.configure(app, opts=OPTS)
def self.configure(app, opts=OPTS) policy = app.opts[:permissions_policy] = if policy = app.opts[:permissions_policy] policy.dup else Policy.new end if default = opts[:default] SUPPORTED_SETTINGS.each do |setting| policy.send(setting.gsub('-', '_'), *default) end end yield policy if defined?(yield) policy.freeze end