Skip to content

Commit

Permalink
User lifecycle - make 'active' the initial state (i.e. db default)
Browse files Browse the repository at this point in the history
  • Loading branch information
tslocke committed Jul 3, 2008
1 parent b9338c2 commit 1ce4f49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hobo/lib/hobo/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def login_attribute=(attr, validate=true)
def signup_lifecycle_for(login_attribute)
lifecycle do

state :active
initial_state :active

create :anybody, :signup, :params => [login_attribute, :email_address, :password, :password_confirmation].uniq,
:become => :active, :if => proc {|_, u| u.guest?}
Expand Down

0 comments on commit 1ce4f49

Please sign in to comment.