Changeset [17247eac8a78f8b36dcc3b9684a3e4ec8da32a23] by Bryan Larsen

November 16th, 2009 @ 04:11 PM

[#530 state:resolved]

This is the fix for bug 530. The fix is in the hobo_user_model
template, so you will have to run

script/generate hobo_user_model User --invite-only

or

rake hobo:run_standard_generators

or you can patch app/models/user.rb from

validates_confirmation_of :password, :if => "User.count == 0"

to

def new_password_required_with_invite_only?
  new_password_required_without_invite_only? || User.count==0
  end
alias_method_chain :new_password_required?, :invite_only

http://github.com/tablatom/hobo/commit/17247eac8a78f8b36dcc3b9684a3...

Committed by Bryan Larsen

  • M hobo/lib/hobo/user.rb
  • M hobo/rails_generators/hobo_user_model/templates/model.rb
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป