Skip to content

MRudolph/update_only_changed_attributes

Repository files navigation

This gem adds the update_only_changed_attributes method to ActiveRecord::Base.

This will pass a new hash to update_attributes, including just the data which is not present in the current object. By this, it prevents MassAssignErrors, if already present data should be written to an object.

In the current stage, nesting isn’t handled at all.

This project uses MIT-LICENSE.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors