diff --git a/app/models/concerns/feed/user.rb b/app/models/concerns/feed/user.rb index cfc2aed00..66b7ff111 100644 --- a/app/models/concerns/feed/user.rb +++ b/app/models/concerns/feed/user.rb @@ -8,10 +8,9 @@ module Feed::User private def new_user_notification - ActivityFeed.create( - user: self, + activity_feeds.create( kind: 'new_user_notification', - data: {user_name: self.user_appeal, user_email: self.email} + data: { user_name: user_appeal, user_email: email } ) end