def track_goal_changes return if !@first_update && saved_change_to_attribute?(:goal) return unless saved_change_to_attribute?(:goal) @first_update = true Contact::BgGoalSynchronizer.perform_async(user_id, id) end
def track_goal_changes return if !@first_update && saved_change_to_attribute?(:goal) return unless saved_change_to_attribute?(:goal) @first_update = true Contact::BgGoalSynchronizer.perform_async(user_id, id) end