Skip to content

Instantly share code, notes, and snippets.

@joseluistorres
Created June 19, 2013 00:25
Show Gist options
  • Save joseluistorres/5810744 to your computer and use it in GitHub Desktop.
Save joseluistorres/5810744 to your computer and use it in GitHub Desktop.
HIDE YOUR SINS
def get_campaign_language(language)
begin
languages = []
if language
@campaign.languages << Language.find_by_lang_code(language)
languages << language
end
return languages
rescue StandardError => e
puts e #HIDEYOURSINS
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment