Created
February 12, 2016 20:40
-
-
Save adelevie/7809bb86b8e1e4f761b5 to your computer and use it in GitHub Desktop.
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 complete_and_successful | |
| relation = delivery_deadline_expired(@relation) | |
| relation = delivered(relation) | |
| relation = accepted(relation) | |
| relation = cap_submitted(relation) | |
| relation = paid(relation) | |
| relation | |
| end |
@dogweather Ugh, you're right. Language switching on a Friday afternoon. :) I definitely agree that the chained version is much nicer!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@krues8dr, you've been doing a lot of javascript or python programming. 😄 In Ruby it'd look like this: