Closed cis-venkat closed 10 years ago
It uses only native SQL queries, no callbacks. That was the main reason of creating this gem.
Perhaps we are missing some README on this.
sneaky_save
only saves the current record, not its associations. Which means that if you have any updated belongs_to
foreign key attributes on that record they would be saved.
Its kinda risky and out of scope to do a recursive save (via has_many etc), as you might end up pulling your ending database.
It sounds like intentional. Great Thanks!
Nice one! But, I have tried to save an object that has some associated objects build. When I do
obj.sneaky_save
, onlyobj
get saved but not associated ones. Is there any way to do this?