-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incompatible with rails_admin 1.4.x #22
Comments
This seems due to the fact that This line right here should return The solution here is to extract the common functionality from |
This allows all functionality of `Rack::Session::Redis` to be mixed into other classes without needing to inherit from `Rack::Session::Redis` itself. Pre-requisite for the fix in redis-store/redis-actionpack#22 Resolves #38
Upon retrospect I think there’s a simpler fix that was eluding me at first. I’ll write more about it in an upcoming PR to redis-rack, and close the current one I have open.
…
On Oct 7, 2018 at 10:04 PM, <PikachuEXE ***@***.***)> wrote:
Just updated to rails_admin 1.4.2 and got this error on start up:
Required middlewares for RailsAdmin are not added To fix tihs, add config.middleware.use ActionDispatch::Session::RedisStore, {:redis_server=>{:host=>"127.0.0.1", :port=>6379, :password=>nil, :namespace=>"spacious:development:sessions"}, :key=>"_spacious_development_sessions_v2017_01_04_1426"} to config/application.rb.
error raised from
https://github.com/sferik/rails_admin/blob/v1.4.2/lib/rails_admin/engine.rb#L46
Not sure if this is this gem's issue or rails_admin's issue
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub (#22), or mute the thread (https://github.com/notifications/unsubscribe-auth/AAG5grSEfFrL3XEDYCEA7uLNhxmllCJ1ks5uirKUgaJpZM4XMJ-X).
|
Looking at Dalli's implementation of Rack::Session, I believe the problem has more to do with how I don't think there's anything to be done in redis-actionpack, and instead the issue should be raised as to how rails-admin is testing for session store middleware in the chain. Gonna close this unless you feel otherwise. |
…AbstractStore Fixes #3076, refs. redis-store/redis-actionpack#22
@tubbo Thanks for the suggestion, I've updated the middleware check logic accordingly. |
Just updated to
rails_admin
1.4.2
and got this error on start up:error raised from
https://github.com/sferik/rails_admin/blob/v1.4.2/lib/rails_admin/engine.rb#L46
Not sure if this is this gem's issue or
rails_admin
's issueThe text was updated successfully, but these errors were encountered: