determine if record has been modified

Hello

How do I determine whether record has been modified since i loaded it
from db? (without comparing it to database.) something like:

my_record.has_changed? # return true if attribute was modified, false
elsewhere

thanks guys

f.