blob: f5dc93e994e7346ea78a592f3811d91748d726be (
plain) (
tree)
|
|
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
|