daily pastebin goal
16%
SHARE
TWEET

Untitled

a guest Oct 17th, 2018 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class User < ActiveRecord::Base
  2.   # Include default devise modules. Others available are:
  3.   # :token_authenticatable, :confirmable,
  4.   # :lockable, :timeoutable and :omniauthable
  5.   devise :database_authenticatable, :registerable,
  6.          :recoverable, :rememberable, :trackable, :validatable
  7.  
  8.   # Setup accessible (or protected) attributes for your model
  9.   attr_accessible :email, :password, :password_confirmation, :remember_me, :username
  10.   cattr_accessor :current_user
  11.  
  12.   has_many :payments, :order => "created_at DESC"
  13. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top