Permalink
Browse files

Initialize these options as false if they are not given

  • Loading branch information...
1 parent 14198d8 commit 75e89ed68e79b5ed5cd460425bf4957ba9ee08b5 @spastorino spastorino committed Jan 9, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 railties/lib/rails/paths.rb
@@ -134,10 +134,10 @@ def initialize(root, current, *paths)
@root = root
@glob = options[:glob]
- autoload_once! if options[:autoload_once]
- eager_load! if options[:eager_load]
- autoload! if options[:autoload]
- load_path! if options[:load_path]
+ options[:autoload_once] ? autoload_once! : skip_autoload_once!
+ options[:eager_load] ? eager_load! : skip_eager_load!
+ options[:autoload] ? autoload! : skip_autoload!
+ options[:load_path] ? load_path! : skip_load_path!
end
def children

0 comments on commit 75e89ed

Please sign in to comment.