Skip to content

Commit 75e89ed

Browse files
committed
Initialize these options as false if they are not given
1 parent 14198d8 commit 75e89ed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

railties/lib/rails/paths.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,10 @@ def initialize(root, current, *paths)
134134
@root = root
135135
@glob = options[:glob]
136136

137-
autoload_once! if options[:autoload_once]
138-
eager_load! if options[:eager_load]
139-
autoload! if options[:autoload]
140-
load_path! if options[:load_path]
137+
options[:autoload_once] ? autoload_once! : skip_autoload_once!
138+
options[:eager_load] ? eager_load! : skip_eager_load!
139+
options[:autoload] ? autoload! : skip_autoload!
140+
options[:load_path] ? load_path! : skip_load_path!
141141
end
142142

143143
def children

0 commit comments

Comments
 (0)