Skip to content

Commit

Permalink
Fixed issue with how hooks were being defined and stored by default. …
Browse files Browse the repository at this point in the history
…[#56 state:resolved]
  • Loading branch information
mtodd committed Jul 1, 2008
1 parent 64e656a commit 4729bc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/halcyon/application/hooks.rb
Expand Up @@ -22,7 +22,7 @@ module ClassMethods
def startup &hook
Halcyon.hooks[:startup] << hook
end

# Sets the shutdown hook to the proc.
#
# Close any resources opened in the +startup+ hook.
Expand Down
2 changes: 1 addition & 1 deletion lib/halcyon/config.rb
Expand Up @@ -206,7 +206,7 @@ def defaults(env = nil)
:level => 'debug'
},
:paths => Paths.new,
:hooks => Hash.new([])
:hooks => {:startup => [], :shutdown => []}
}
case (env || :development)
when :development
Expand Down

0 comments on commit 4729bc6

Please sign in to comment.