services/api/app/models/user.rb
# Send notification if the user saved profile for the first time
Send notification if the user saved profile for the first time
Send notification if the user saved profile for the first time
def send_profile_created_notification
    if self.prefs_changed?
      if self.prefs_was.andand.empty? || !self.prefs_was.andand['profile']
        profile_notification_address = Rails.configuration.Users.UserProfileNotificationAddress
        ProfileNotifier.profile_created(self, profile_notification_address).deliver_now if profile_notification_address and !profile_notification_address.empty?
      end
    end
  end
def send_profile_created_notification if self . prefs_changed? if self . prefs_was . andand . empty? || ! self . prefs_was . andand [ 'profile' ] profile_notification_address = Rails . configuration . Users . UserProfileNotificationAddress ProfileNotifier . profile_created ( self , profile_notification_address ) . deliver_now if profile_notification_address and ! profile_notification_address . empty? end end end
Send notification if the user saved profile for the first time
Send notification if the user saved profile for the first time