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

Use relative path to specify layouts path #3335

Conversation

kennyadsl
Copy link
Member

Description

We are currently setting layouts to render using an absolute path. I don't think using the absolute path has any benefit and it is now deprecated in Rails 6 with rails/rails#35793.

This PR fixes the deprecation:

DEPRECATION WARNING: Rendering layouts from an absolute path is deprecated. ...

Checklist:

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • [ ] I have updated Guides and README accordingly to this change (if needed)
  • [ ] I have added tests to cover this change (if needed)

Using an absolute path has been deprecated in Rails 6 with
rails/rails#35793.
@kennyadsl kennyadsl self-assigned this Sep 16, 2019
Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

Makes sense. Thanks.

@kennyadsl kennyadsl merged commit d453bb6 into solidusio:master Sep 18, 2019
@kennyadsl kennyadsl deleted the kennyadsl/fix-absolute-path-render-deprecation branch September 18, 2019 12:45
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.

3 participants