Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Initialize these options as false if they are not given

  • Loading branch information...
commit 75e89ed68e79b5ed5cd460425bf4957ba9ee08b5 1 parent 14198d8
@spastorino spastorino authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 railties/lib/rails/paths.rb
View
8 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
Please sign in to comment.
Something went wrong with that request. Please try again.