aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/models/administrator.rb
blob: 2d6d34b3e2e47b5a359fd3ac7f19180591fd1f9f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
class Administrator
  extend ActiveModel::Callbacks
  include ActiveModel::Validations
  include ActiveModel::SecurePassword
  include ActiveModel::MassAssignmentSecurity
  
  define_model_callbacks :create

  attr_accessor :name, :password_digest
  attr_accessible :name

  has_secure_password
end