rosa-build/lib/modules/observers/activity_feed/user.rb

19 lines
399 B
Ruby

# -*- encoding : utf-8 -*-
module Modules::Observers::ActivityFeed::User
extend ActiveSupport::Concern
included do
after_commit :new_user_notification, :on => :create
end
private
def new_user_notification
ActivityFeed.create(
:user => self,
:kind => 'new_user_notification',
:data => {:user_name => self.user_appeal, :user_email => self.email}
)
end
end