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

Return back "/" to the end of RAILS_GEM_ROOT #32650

Merged

Conversation

bogdanvlviv
Copy link
Contributor

  • The "/" was removed in 40bdbce during
    refactoring. It may cause regression since looks like was added
    intentionaly because it is possible that a name of any another gem
    can start with /rails/, so slash was added to ensure that it is "rails"
    gem.
    I would like to backport this to 5-2-stable too.

  • Use __dir__ instead of __FILE__. Follow up Define path with __dir__ #29176.

- The "/" was removed in 40bdbce during
refactoring. It may cause regression since looks like was added
intentionaly because it is possible that a name of any another gem
can start with /rails/, so slash was added to ensure that it is "rails"
gem.
I would like to backport this to `5-2-stable` too.

- Use `__dir__` instead of `__FILE__`. Follow up rails#29176.
@rails-bot
Copy link

r? @pixeltrix

(@rails-bot has picked a reviewer for you, use r? to override)

@rafaelfranca rafaelfranca merged commit bfd61cb into rails:master Apr 20, 2018
rafaelfranca added a commit that referenced this pull request Apr 20, 2018
…__dir__

Return back "/" to the end of RAILS_GEM_ROOT
@bogdanvlviv bogdanvlviv deleted the return_back_slash_and_use___dir__ branch April 20, 2018 05:13
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

4 participants