diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2011-01-09 16:54:03 -0200 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-01-09 16:54:03 -0200 |
commit | 75e89ed68e79b5ed5cd460425bf4957ba9ee08b5 (patch) | |
tree | 47b6c234024561f1aff0b38b3f2659ccaca06db4 /railties/lib/rails/paths.rb | |
parent | 14198d84a90fdf7122c47367485148c52e45053e (diff) | |
download | rails-75e89ed68e79b5ed5cd460425bf4957ba9ee08b5.tar.gz rails-75e89ed68e79b5ed5cd460425bf4957ba9ee08b5.tar.bz2 rails-75e89ed68e79b5ed5cd460425bf4957ba9ee08b5.zip |
Initialize these options as false if they are not given
Diffstat (limited to 'railties/lib/rails/paths.rb')
-rw-r--r-- | railties/lib/rails/paths.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/lib/rails/paths.rb b/railties/lib/rails/paths.rb index 8570fc7b3f..d15887f561 100644 --- a/railties/lib/rails/paths.rb +++ b/railties/lib/rails/paths.rb @@ -134,10 +134,10 @@ module Rails @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 |