-
Notifications
You must be signed in to change notification settings - Fork 6
Support for rails 5.1.0 #1
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
Conversation
|
@parse can we merge this? |
|
|
||
| initializer "rocket_pants.setup_caching" do |app| | ||
| if RocketPants.caching_enabled? | ||
| app.middleware.insert 'Rack::Runtime', RocketPants::CacheMiddleware |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to maintain compatibility with rails 4, can you add a check for determining the rails version and use the old way for that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you change it to be:
if Rails::VERSION::MAJOR >= 5
|
@parse what about it now? |
|
|
||
| initializer "rocket_pants.setup_caching" do |app| | ||
| if RocketPants.caching_enabled? | ||
| app.middleware.insert 'Rack::Runtime', RocketPants::CacheMiddleware |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you change it to be:
if Rails::VERSION::MAJOR >= 5
|
@parse ready! :) |
|
I was going to squash all the |
Added support for rails 5.1.0.
Rails do not support anymore strings or symbols for middleware class names.