1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/lib
Eileen Uchitelle 555c1a3a54 Fix app boot for Ruby 2.4
I have a test app that was on Ruby 2.4. When I pulled Rails master the
app no longer would boot because of this change and I saw the following
error:

```
SyntaxError:
/Users/eileencodes/open_source/real_rails/railties/lib/rails/all.rb:18:
syntax error, unexpected keyword_rescue, expecting keyword_end
rescue LoadError
      ^
```

Ruby 2.4 doesn't support removing redundant begins so the real issue is
that this app is on Ruby 2.4 and not on Ruby 2.5. But it's super
confusing for a user to understand the reason the app is failing to boot
is because we need Ruby 2.5.

I added this redundant begin back because we need to give a clearer
error message.
2018-12-21 12:24:40 -05:00
..
minitest Allow use of minitest-rails gem with Rails test runner 2018-04-11 07:20:53 +09:00
rails Fix app boot for Ruby 2.4 2018-12-21 12:24:40 -05:00
rails.rb [Railties] require_relative => require 2017-10-21 22:48:26 +09:00