Skip to content

Commit

Permalink
Bug with loading initializers and the glob being spcified wrong (as s…
Browse files Browse the repository at this point in the history
…tring instead of array of paths). Also fully resolves [#41 state:resolved].
  • Loading branch information
mtodd committed Jun 19, 2008
1 parent a39f1e5 commit 294b3da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/halcyon/application.rb
Expand Up @@ -226,7 +226,7 @@ def boot
Halcyon.logger = Halcyon::Logger.setup(Halcyon.config[:logging])

# Run initializers
Dir.glob(%(requires hooks routes *).map{|init|Halcyon.paths[:init]/init+'.rb'}).each do |initializer|
Dir.glob(%w(requires hooks routes *).map{|init|Halcyon.paths[:init]/init+'.rb'}).each do |initializer|
self.logger.debug "Init: #{File.basename(initializer).chomp('.rb').camel_case}" if
require initializer.chomp('.rb')
end
Expand Down

0 comments on commit 294b3da

Please sign in to comment.