I have an Order model with a ‘status’ column. What I want to be able to
is validate that the status of the Order is not completed before it is
allowed to be deleted. I tried the following method in my Model, but it
appears that this only works for an :update or :create on the record.
Anyone know how to do this, and if it should be in the model or the
validates_each :approval_status do |record, attr, value| record.errors.add attr, 'Order Is Completed' if value ==