einzige / sneaky-save

Allows to update complex objects without triggering validations or callbacks.
45 stars 30 forks source link

SQL Updates fired when no changes present #7

Open akshayrawat opened 9 years ago

akshayrawat commented 9 years ago

Discussed here:

https://github.com/einzige/sneaky-save/commit/af0da41abd16b9c1370cc0be6fc26275234b1394#commitcomment-7720468

akshayrawat commented 9 years ago

cc @einzige

akshayrawat commented 9 years ago

@einzige Not sure how the tests today are run against Rails 3 and Rails 4. This issue would need that as the method to clear the changes hash is slightly different in Rails 3 and 4.

Most gems use Appraisal these days to do this kind of thing.

Let me know what you think.