einzige / sneaky-save

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

Support for timestamps #9

Closed valeriecodes closed 9 years ago

valeriecodes commented 9 years ago

Created_at and updated_at are often required fields, but Model.new.sneaky_save always fails for models requiring them.

Could created_at and updated_at be added as the current time if they're columns on the table and the provided values are null?

einzige commented 9 years ago

@azelma The main purpose of this gem is to do nothing with records before they get saved. If we do it.. do you think others will not be confused? Say no, and I will put this into the gem :)