Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
weirdness on setting commissions
# set commission only for non artists or artists whose not buying their own art
Rails.logger.debug '*' * 100
Rails.logger.debug "artist id: #{} 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