diff options
-rw-r--r-- | railties/lib/rails/engine.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/engine.rb b/railties/lib/rails/engine.rb index 6695507d93..d6c329b581 100644 --- a/railties/lib/rails/engine.rb +++ b/railties/lib/rails/engine.rb @@ -474,7 +474,7 @@ module Rails def eager_load! config.eager_load_paths.each do |load_path| # Starts after load_path plus a slash, ends before ".rb". - relname_range = (load_path.length + 1)...-3 + relname_range = (load_path.to_s.length + 1)...-3 Dir.glob("#{load_path}/**/*.rb").sort.each do |file| require_dependency file[relname_range] end |