Skip to content

Instantly share code, notes, and snippets.

@kelso
Created October 1, 2013 10:21
Show Gist options
  • Save kelso/6776476 to your computer and use it in GitHub Desktop.
Save kelso/6776476 to your computer and use it in GitHub Desktop.
metal_price = case product.category.kind
when "gold_coin", "gold_bar" then gold_price
when "silver_coin", "silver_bar" then silver_price
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment