Class: Orbit::Session::Cookie

Inherits:
Rack::Session::Cookie
  • Object
show all
Defined in:
lib/orbit/session/cookie.rb

Instance Method Summary collapse

Constructor Details

#initialize(controller, cookies, options = {}) ⇒ Cookie

Returns a new instance of Cookie.



4
5
6
7
8
9
# File 'lib/orbit/session/cookie.rb', line 4

def initialize(controller, cookies, options={})
  @controller = controller
  @cookies = cookies
  options[:secret] = Orbit::Config.session_secret
  super(cookies, options)
end

Instance Method Details

#[](key) ⇒ Object



11
12
13
# File 'lib/orbit/session/cookie.rb', line 11

def [](key)
  @cookies[key]
end

#[]=(key, value) ⇒ Object



15
16
17
# File 'lib/orbit/session/cookie.rb', line 15

def []=(key, value)
  @cookies[key] = value
end

#delete(key, options) ⇒ Object



19
20
# File 'lib/orbit/session/cookie.rb', line 19

def delete(key, options)
end