Skip to content

Instantly share code, notes, and snippets.

@alexesDev
Forked from kirs/user.rb
Created September 20, 2012 12:52
Show Gist options
  • Save alexesDev/3755707 to your computer and use it in GitHub Desktop.
Save alexesDev/3755707 to your computer and use it in GitHub Desktop.
Example User model for Inboxes gem
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
has_inboxes
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment