Is there a way to determine if attributes were changed? Let’s say in
the before_save or after_save method?
Thanks for your help.
Thank You,
Ben J.
E: [email protected]
Is there a way to determine if attributes were changed? Let’s say in
the before_save or after_save method?
Thanks for your help.
Thank You,
Ben J.
E: [email protected]
No, but there are a few plugins out there (acts_as_modified and rdiff)
which
do that. I made my own custom acts_as_comparable plugin that I have
which is
able to compare any 2 AR objects and show you the exact differences,
along
with comparing an object to the version which exists in the db. If you
would
like that, let me know.
mark
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs