a guest Oct 17th, 2018 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- 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, :username
- cattr_accessor :current_user
- has_many :payments, :order => "created_at DESC"
RAW Paste Data