Module: SafeCookies
- Defined in:
- lib/safe_cookies.rb,
lib/safe_cookies/helpers.rb,
lib/safe_cookies/version.rb,
lib/safe_cookies/configuration.rb,
lib/safe_cookies/cookie_path_fix.rb
Overview
Naming:
-
application_cookies: cookies received from the application. The ‘Set-Cookie’ header is a string
-
request_cookies: cookies received from the client. Rack::Request#cookies returns a Hash of { ‘name’ => ‘value’ }
Defined Under Namespace
Modules: CookiePathFix, Helpers Classes: Configuration, Middleware, Util
Constant Summary collapse
- UnknownCookieError =
Class.new(StandardError)
- STORE_COOKIE_NAME =
'_safe_cookies__known_cookies'
- SECURED_COOKIE_NAME =
'secured_old_cookies'
- HELPER_COOKIES_LIFETIME =
10 years
10 * 365 * 24 * 60 * 60
- VERSION =
'0.2.2'
- MissingOptionError =
Class.new(StandardError)
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
6 7 8 |
# File 'lib/safe_cookies/configuration.rb', line 6 def configuration @configuration end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
8 9 10 11 |
# File 'lib/safe_cookies/configuration.rb', line 8 def configure self.configuration ||= Configuration.new yield(configuration) end |