Skip to content

Instantly share code, notes, and snippets.

@mghaught
Created March 8, 2010 22:53
Show Gist options
  • Save mghaught/325905 to your computer and use it in GitHub Desktop.
Save mghaught/325905 to your computer and use it in GitHub Desktop.
def process_for_social_media
if profile
profile.profile_social_networks.each do |network|
if network.activated?
if network.twitter?
process_for_twitter(network.twitter_login, network.id)
end
if network.facebook?
send_to_facebook(network)
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment