Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Embed URL


Subversion checkout URL

You can clone with
Download ZIP
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
Something went wrong with that request. Please try again.