scambra/devise_invitable — pull request #272 by gabecorrea (2013-01-30 06:46:54+00:00)
Title: proposed change to enable invites to be sent to new_users

Could not send invitations from the rails console according to the usage instructions:

User.invite!( { :email => 'john.doe@example.com' } )

I poked around, and invite_key_valid was returning false, and the problem seemed to be:

self.class.invite_key.all? do |key, regexp|

self.class.invite_key.all? returned a boolean, not a hash, which seemed to be expected. After making this change, I could send invitations for new users without issue.