Module: Pasaporte::CookiePreservingRedirect
- Defined in:
- lib/pasaporte.rb
Overview
Camping bug workaround - on redirect the cookie header is not set
Instance Method Summary collapse
Instance Method Details
#redirect(*args) ⇒ Object
194 195 196 197 198 |
# File 'lib/pasaporte.rb', line 194 def redirect(*args) @headers['Set-Cookie'] = @cookies.map { |k,v| "#{k}=#{C.escape(v)}; path=#{self/"/"}" if v != @k[k] } - [nil] force_session_save! super(*args) end |