Skip to content

Instantly share code, notes, and snippets.

@alex-kovshovik
Created June 17, 2016 23:12
Show Gist options
  • Select an option

  • Save alex-kovshovik/9110377fcea8cf990e8b69ca43d21515 to your computer and use it in GitHub Desktop.

Select an option

Save alex-kovshovik/9110377fcea8cf990e8b69ca43d21515 to your computer and use it in GitHub Desktop.
Ruby exception handling 1
def export_to_csv(csv, record)
row = []
row << record.id
row << record.title
row << record.owner.name
row << record.get_validation_data(RecordValidator.instance)
# More boring-ass code like that here.
# ...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment