Created
July 30, 2012 23:13
-
-
Save Kellyreid/3211745 to your computer and use it in GitHub Desktop.
user model
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 | |
# Include default devise modules. Others available are: | |
# :token_authenticatable, :confirmable, | |
# :lockable, :timeoutable and :omniauthable | |
devise :database_authenticatable, :registerable, | |
:recoverable, :rememberable, :trackable, :validatable | |
# Setup accessible (or protected) attributes for your model | |
attr_accessible :email, :password, :password_confirmation, :remember_me | |
# attr_accessible :title, :body | |
has_many :measurements | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment