title: How can I modify the price before it is returned from the model?
body: <p>In Ruby on Rails (v4) I want to be able to discount the price via a method in the model. I have <code>Tags</code> with rules that are applied to <code>product</code>. For example, if a <code>product</code> has two <code>tags</code> and one says to discount the product $10 and the second rule says to discount the product $3, I need to be able to set the price for the product to the lower of the two rules. </p>
  
  <p>So my question is: Can I override the <code>@product.price</code> method with a custom method that will allow me to apply my <code>Tag</code> rules first?</p>