Skip to content
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

Rails 5: ActionDispatch::Reloader#to_prepare is deprecated #404

Merged
merged 1 commit into from
Apr 13, 2017

Conversation

djones
Copy link
Contributor

@djones djones commented Apr 13, 2017

When Rails 5.1 comes out, the use of ActionDispatch::Reloader#to_prepare here will cause the session initializer to break.

This fixes the following deprecation warning, while maintaining support for Rails 4 and below:

DEPRECATION WARNING: to_prepare is deprecated and will be removed from Rails 5.1 (use ActiveSupport::Reloader.to_prepare instead)

When Rails 5.1 comes out, the use of ActionDispatch::Reloader#to_prepare here will cause the session initializer to break.

This fixes the following deprecation warning: "DEPRECATION WARNING: to_prepare is deprecated and will be removed from Rails 5.1 (use ActiveSupport::Reloader.to_prepare instead)"
@kevinhughes27
Copy link
Contributor

LGTM Thanks!

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.

None yet

3 participants