I have the following function in my model
after_save :update_status
def update_status
if quantity_received >= quantity
self.received = true
else
self.received = false
end
end
True works great but it doesn't update to false when set to true. Any idea?