Skip to content

Commit

Permalink
[#679 state:resolved] fix migration when lifecycle is invoked twice in
Browse files Browse the repository at this point in the history
a model.
  • Loading branch information
bryanlarsen committed Mar 31, 2010
1 parent 546d5f1 commit 56a5370
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hobo/lib/hobo/lifecycles.rb
Expand Up @@ -24,6 +24,7 @@ def self.lifecycle(*args, &block)
# TODO: figure out how to merge with parent, if desired
if self.const_defined?(:Lifecycle)
lifecycle = self::Lifecycle
state_field_class = self::LifecycleStateField
else
# First call

Expand Down

0 comments on commit 56a5370

Please sign in to comment.