Created
June 17, 2016 23:12
-
-
Save alex-kovshovik/9110377fcea8cf990e8b69ca43d21515 to your computer and use it in GitHub Desktop.
Ruby exception handling 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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