After a couple of thoughtful comments, I’ve made changes to
acts_as_modified plugin. It no longer relies on after_find and
after_initialize, which were both causing performance issues.
Please check it out and let me know what you think, where you might
recommend improvements or additional features and what not.
One feature I do have planned (again, thanks to comments), but haven’t
had much time to devote to it at the moment, is to introduce the
ability to only save those attributes that have been modified. There
are of course issues revolving around this, ie, what to do about magic
columns like created_at/updated_at, other attributes introduced via
other plugins, mysql timestamp columns, etc.