Last active
August 17, 2016 08:14
-
-
Save aishek/b7d2a9c5d32060643b33443d21919ed1 to your computer and use it in GitHub Desktop.
Secret case examples
This file contains 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 send_pick_up_email_async(order) | |
unless order.from_office? | |
if order.long? | |
Order::PickUpEmailWorker.perform_async(order.id) | |
else | |
Order::PickUpAndDropOffEmailWorker.perform_async(order.id) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment