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

Version Path
sunrise-cms-0.5.0.rc3 spec/tmp/app/models/defaults/user.rb
sunrise-cms-0.5.0.rc3 lib/generators/sunrise/templates/models/active_record/user.rb
sunrise-cms-0.5.0.rc2 lib/generators/sunrise/templates/models/active_record/user.rb
sunrise-cms-0.5.0.rc2 spec/tmp/app/models/defaults/user.rb
sunrise-cms-0.5.0.rc1 spec/tmp/app/models/defaults/user.rb
sunrise-cms-0.5.0.rc1 lib/generators/sunrise/templates/models/active_record/user.rb
sunrise-cms-0.4.2 spec/tmp/app/models/defaults/user.rb
sunrise-cms-0.4.2 lib/generators/sunrise/templates/models/defaults/user.rb
sunrise-cms-0.4.1 spec/tmp/app/models/defaults/user.rb
sunrise-cms-0.4.1 lib/generators/sunrise/templates/models/defaults/user.rb
sunrise-cms-0.4.0 spec/tmp/app/models/defaults/user.rb
sunrise-cms-0.4.0 lib/generators/sunrise/templates/models/defaults/user.rb
sunrise-cms-0.3.3 spec/tmp/app/models/defaults/user.rb
sunrise-cms-0.3.3 lib/generators/sunrise/templates/models/defaults/user.rb
sunrise-cms-0.3.2 spec/tmp/app/models/defaults/user.rb
sunrise-cms-0.3.2 lib/generators/sunrise/templates/models/defaults/user.rb
sunrise-cms-0.3.1 lib/generators/sunrise/templates/models/defaults/user.rb
sunrise-cms-0.3.1 spec/tmp/app/models/defaults/user.rb
sunrise-cms-0.3.0 spec/tmp/app/models/defaults/user.rb
sunrise-cms-0.3.0 lib/generators/sunrise/templates/models/defaults/user.rb