aboutsummaryrefslogblamecommitdiffstats
path: root/activerecord/test/models/user.rb
blob: f5dc93e994e7346ea78a592f3811d91748d726be (plain) (tree)
1
2
3
4
5
6
7
8



                               



                                                                                  
class User < ActiveRecord::Base
  has_secure_token
  has_secure_token :auth_token
end

class UserWithNotification < User
  after_create -> { Notification.create! message: "A new user has been created." }
end