Skip to content

Commit

Permalink
Initialize these options as false if they are not given
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed Jan 9, 2011
1 parent 14198d8 commit 75e89ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions railties/lib/rails/paths.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ def initialize(root, current, *paths)
@root = root @root = root
@glob = options[:glob] @glob = options[:glob]


autoload_once! if options[:autoload_once] options[:autoload_once] ? autoload_once! : skip_autoload_once!
eager_load! if options[:eager_load] options[:eager_load] ? eager_load! : skip_eager_load!
autoload! if options[:autoload] options[:autoload] ? autoload! : skip_autoload!
load_path! if options[:load_path] options[:load_path] ? load_path! : skip_load_path!
end end


def children def children
Expand Down

0 comments on commit 75e89ed

Please sign in to comment.