diff options
author | Eileen Uchitelle <eileencodes@gmail.com> | 2018-12-21 12:13:18 -0500 |
---|---|---|
committer | Eileen Uchitelle <eileencodes@gmail.com> | 2018-12-21 12:24:40 -0500 |
commit | 555c1a3a5400dc257cee2ae5e209354f2dc4df8a (patch) | |
tree | 36e984c9bb6cdc1d6084c08de790f27d29acd0dd /activejob/test/adapters/sidekiq.rb | |
parent | b00e46bd6d399d3b8c4707ede0716c3ec2c39eb7 (diff) | |
download | rails-555c1a3a5400dc257cee2ae5e209354f2dc4df8a.tar.gz rails-555c1a3a5400dc257cee2ae5e209354f2dc4df8a.tar.bz2 rails-555c1a3a5400dc257cee2ae5e209354f2dc4df8a.zip |
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.
Diffstat (limited to 'activejob/test/adapters/sidekiq.rb')
0 files changed, 0 insertions, 0 deletions