Skip to content

Instantly share code, notes, and snippets.

@akurkin
Created Mar 17, 2015
Embed
What would you like to do?
def unit_price(item)
if item.order.is_a?(Orders::DsrOrder) && item.eligible_for_dsr_discount?
item.stylist_price
else
item.price
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment