Skip to content

Commit

Permalink
fix wrong require ordering
Browse files Browse the repository at this point in the history
Caused the following exception:
uninitialized constant Toro::Fetcher::Actor (NameError)
[…]/lib/toro/fetcher.rb:3:in `<class:Fetcher>
  • Loading branch information
barnslig committed May 6, 2014
1 parent 84e48c7 commit bf87b1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/toro.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# Self
directory = File.dirname(File.absolute_path(__FILE__))
require "#{directory}/toro/version.rb"
Dir.glob("#{directory}/toro/*.rb") { |file| require file }
Dir.glob("#{directory}/toro/*.rb").sort.each { |file| require file }
Dir.glob("#{directory}/toro/middleware/**/*.rb") { |file| require file }
Dir.glob("#{directory}/generators/**/*.rb") { |file| require file }

Expand Down Expand Up @@ -51,4 +51,4 @@ def logger=(log)
Toro::Logging.logger = log
end
end
end
end

0 comments on commit bf87b1a

Please sign in to comment.