hoopla / rack-p3p

Insert a P3P header into your Rack webapp.
35 stars 21 forks source link

doesnt work in rails 3.0.10 #1

Open scottillogical opened 12 years ago

scottillogical commented 12 years ago

it looks like

ActionDispatch::Session::CookieStore doesnt exist anymore

there is

use ActionDispatch::Cookies use ActiveRecord::SessionStore

at least for me

jasonreposa commented 12 years ago

I was able to get it to work in rails 3.2.2 using the following code after I define my session_store in the session_store.rb initializer.

// session_store.rb YourApp::Application.config.session_store :cookie_store, :key => '_your_app_session'

// add this: Rails.application.config.middleware.insert_before(YourApp::Application.config.session_store, Rack::P3p)