Rails - before_filter than includes updated object
- by Sam
I have a before filter than calculates a percentage that needs to include the object that is being updated. Is there a one liner in rails that takes care of this?
for example and this is totaly made up:
Object.find(:all, :include = :updated_object)
Currently I'm sending the object that is getting updated to the definition that calculates the percentage and that works but its making things messy.