Class: ActionController::CookieJar

Inherits:
Object
  • Object
show all
Defined in:
lib/m_cookies.rb

Instance Method Summary collapse

Instance Method Details

#[]=(name, options) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/m_cookies.rb', line 5

def []=(name, options)
  options = {:value => options} unless options.is_a? Hash
  if self.respond_to?(:app_config)
    options = {:domain => app_config.cookie_domain}.merge(options) unless app_config.cookie_domain.nil?
  end
  old_setter(name, options)
end

#old_setterObject



3
# File 'lib/m_cookies.rb', line 3

alias_method :old_setter, :[]=