Hello, How to access to old field values in validate_on_update method? I need to see if there is changed field's value and if it is so, rise an error. Thank you!
on 2007-06-09 00:28
on 2007-06-11 19:56
I haven't tested this but you could try using Model.find() to get the version of the object from the database which will as yet be unmodified by the save. Then compare the fields with the (unsaved) version to see if changes have been made. Try it, if it doesnt work I'll suggest something else. steve