add slack notifications

This commit is contained in:
João Geonizeli
2021-08-17 10:04:24 -03:00
parent 559b239c02
commit 0b7cdeb236
9 changed files with 68 additions and 10 deletions

View File

@@ -21,6 +21,8 @@
# index_users_on_reset_password_token (reset_password_token) UNIQUE
#
class User < ApplicationRecord
include Notifiable
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :validatable
@@ -43,4 +45,10 @@ class User < ApplicationRecord
def create_balances
CreateUserBalances.new(self).call
end
private
def notification_message
"🎉 New user: #{email} 🎉"
end
end