diff options
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/all.rb | 6 | ||||
-rw-r--r-- | railties/lib/rails/command/behavior.rb | 10 |
2 files changed, 6 insertions, 10 deletions
diff --git a/railties/lib/rails/all.rb b/railties/lib/rails/all.rb index f5dccd2381..b4a9c4e65f 100644 --- a/railties/lib/rails/all.rb +++ b/railties/lib/rails/all.rb @@ -13,8 +13,6 @@ require "rails" rails/test_unit/railtie sprockets/railtie ).each do |railtie| - begin - require railtie - rescue LoadError - end + require railtie +rescue LoadError end diff --git a/railties/lib/rails/command/behavior.rb b/railties/lib/rails/command/behavior.rb index 718e2d9ab2..7f32b04cf1 100644 --- a/railties/lib/rails/command/behavior.rb +++ b/railties/lib/rails/command/behavior.rb @@ -56,12 +56,10 @@ module Rails def lookup! $LOAD_PATH.each do |base| Dir[File.join(base, *file_lookup_paths)].each do |path| - begin - path = path.sub("#{base}/", "") - require path - rescue Exception - # No problem - end + path = path.sub("#{base}/", "") + require path + rescue Exception + # No problem end end end |