diff options
-rw-r--r-- | railties/lib/rails/all.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/railties/lib/rails/all.rb b/railties/lib/rails/all.rb index b4a9c4e65f..7f4c625b39 100644 --- a/railties/lib/rails/all.rb +++ b/railties/lib/rails/all.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +# rubocop:disable Style/RedundantBegin + require "rails" %w( @@ -13,6 +15,8 @@ require "rails" rails/test_unit/railtie sprockets/railtie ).each do |railtie| - require railtie -rescue LoadError + begin + require railtie + rescue LoadError + end end |