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
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter