1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activemodel/test/models/visitor.rb

12 lines
258 B
Ruby
Raw Normal View History

class Visitor
2012-05-08 18:54:47 -04:00
extend ActiveModel::Callbacks
include ActiveModel::Validations
include ActiveModel::SecurePassword
2012-05-08 18:54:47 -04:00
define_model_callbacks :create
2012-05-08 18:54:47 -04:00
has_secure_password(validations: false)
2012-05-08 18:54:47 -04:00
attr_accessor :password_digest, :password_confirmation
end