Created
December 31, 2011 03:08
-
-
Save twinge/1542657 to your computer and use it in GitHub Desktop.
weirdness on setting commissions
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
# set commission only for non artists or artists whose not buying their own art | |
Rails.logger.debug '*' * 100 | |
Rails.logger.debug "artist id: #{User.current.artist.id} product id: #{li.product.id} (#{!User.current.artist}) || (#{User.current.artist && !User.current.artist.products.include?(li.product)})" | |
li.set_commissions if !User.current.artist || (User.current.artist && !User.current.artist.products.include?(li.product)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment