Module: OodAppkit::DefaultCookieOptions

Defined in:
lib/ood_appkit/default_cookie_options.rb

Instance Method Summary collapse

Instance Method Details

#handle_options(options) ⇒ Object



3
4
5
6
7
8
# File 'lib/ood_appkit/default_cookie_options.rb', line 3

def handle_options(options)
  if base_uri = ENV["RAILS_RELATIVE_URL_ROOT"]
    options[:path] = base_uri unless /^#{Regexp.quote base_uri}/ =~ options[:path]
  end
  super(options)
end