Sha256: 6f5ca46025c8860aa26c91aeefcbbd031c51a3207677966b1d7edac3e56fb443
Contents?: true
Size: 772 Bytes
Versions: 1
Compression:
Stored size: 772 Bytes
Contents
# frozen_string_literal: true require "rack/blacklist_cookies" require "rack/blacklist_cookies/configuration" require "rack/blacklist_cookies/scrubber" require "rack/blacklist_cookies/version" module Rack # Rack::BlacklistCookies holds onto configuration values at the class level class BlacklistCookies def self.configuration @configuration ||= Configuration.new end def self.configure yield(configuration) configuration.validate rescue ConfigurationError => error configuration.reset raise error end def self.request_blacklist(env) configuration.request_blacklist[env["PATH_INFO"]] end def self.response_blacklist(env) configuration.response_blacklist[env["PATH_INFO"]] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rack-blacklist_cookies-1.0.0 | lib/rack-blacklist_cookies.rb |