Sha256: 8061eda53df328bc387a30c9f03ffd2a34298e50c513bc20b9142bdcfc905032

Contents?: true

Size: 537 Bytes

Versions: 2

Compression:

Stored size: 537 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
  
  fileuploads :avatar
  
#  acts_as_audited :protect => false, :only => [:name, :email, :password]
end

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
sunrise-cms-0.3.0.rc lib/generators/sunrise/templates/models/defaults/user.rb
sunrise-cms-0.3.0.rc spec/tmp/app/models/defaults/user.rb