Skip to content

Instantly share code, notes, and snippets.

@adamgamble
Created January 27, 2013 20:11
Show Gist options
  • Save adamgamble/4650186 to your computer and use it in GitHub Desktop.
Save adamgamble/4650186 to your computer and use it in GitHub Desktop.
class User < ActiveRecord::Base
# Added by Koudoku.
has_one :subscription
# Include default devise modules. Others available are:
# :token_authenticatable, :encryptable, :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
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment