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

  define_model_callbacks :create

  attr_accessor :name, :password_digest

  has_secure_password
end