spec/tmp/app/models/defaults/user.rb in sunrise-cms-0.3.0.rc vs spec/tmp/app/models/defaults/user.rb in sunrise-cms-0.3.0.rc2
- old
+ new
@@ -6,10 +6,11 @@
: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
-# acts_as_audited :protect => false, :only => [:name, :email, :password]
+ # audited :protect => false, :only => [:name, :email, :password]
end