Sha256: 9bbd1cbab15814b504f36ff074f0e08ab90a58cc0f876da5978d5d81ae196582
Contents?: true
Size: 632 Bytes
Versions: 22
Compression:
Stored size: 632 Bytes
Contents
class User < ActiveRecord::Base include Sunrise::Models::User # Include default devise modules. devise :database_authenticatable, :confirmable, :lockable, :timeoutable, :recoverable, :rememberable, :trackable, :validatable, :encryptable, :encryptor => :sha512 # Setup accessible (or protected) attributes for your model attr_accessible :name, :email, :password, :password_confirmation, :remember_me attr_accessible :name, :email, :password, :password_confirmation, :avatar_attributes, :as => :admin fileuploads :avatar # audited :protect => false, :only => [:name, :email, :password] end
Version data entries
22 entries across 11 versions & 1 rubygems