Module: Rack::Policy::Helpers
- Defined in:
- lib/rack/policy/helpers.rb
Instance Method Summary collapse
Instance Method Details
#cookies_accepted? ⇒ Boolean
7 8 9 10 11 12 |
# File 'lib/rack/policy/helpers.rb', line 7 def return false unless request.env.has_key? 'rack-policy.consent' accepted = !request.env['rack-policy.consent'].nil? yield if block_given? && accepted accepted end |