Skip to content

Conversation

@MatayoshiMariano
Copy link

@MatayoshiMariano
Copy link
Author

@parse can we merge this?


initializer "rocket_pants.setup_caching" do |app|
if RocketPants.caching_enabled?
app.middleware.insert 'Rack::Runtime', RocketPants::CacheMiddleware
Copy link
Owner

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?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure!

Copy link
Owner

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

@MatayoshiMariano
Copy link
Author

@parse what about it now?


initializer "rocket_pants.setup_caching" do |app|
if RocketPants.caching_enabled?
app.middleware.insert 'Rack::Runtime', RocketPants::CacheMiddleware
Copy link
Owner

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

@MatayoshiMariano
Copy link
Author

@parse ready! :)

@parse parse merged commit c45753f into parse:master Aug 4, 2017
@MatayoshiMariano
Copy link
Author

I was going to squash all the fixup! commit in one commit 😬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants