flash upload should work with any session storage
This commit is contained in:
parent
bb3eb2bc13
commit
b70757c7a4
|
@ -13,7 +13,6 @@ class FlashSessionCookieMiddleware
|
|||
req.params[@session_key] ].join('=').freeze unless req.params[@session_key].nil?
|
||||
env['HTTP_ACCEPT'] = "#{req.params['_http_accept']}".freeze unless req.params['_http_accept'].nil?
|
||||
end
|
||||
|
||||
@app.call(env)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
Balder::Application.config.session_store :cookie_store, :key => '_balder_session'
|
||||
|
||||
Rails.application.config.middleware.insert_before(
|
||||
ActionDispatch::Session::CookieStore,
|
||||
Rails.application.config.session_store,
|
||||
FlashSessionCookieMiddleware,
|
||||
Rails.application.config.session_options[:key]
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue