Created
November 1, 2011 07:14
-
-
Save kirs/1330080 to your computer and use it in GitHub Desktop.
Example User model for Inboxes gem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class User < ActiveRecord::Base | |
devise :database_authenticatable, :registerable, | |
:recoverable, :rememberable, :trackable, :validatable | |
attr_accessible :email, :password, :password_confirmation, :remember_me, :name | |
validates :name, :presence => true, :uniqueness => true | |
inboxes | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think you should change
inboxes
method to behas_inboxes
, since the documentation for inboxes refers to this gist.