-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Control whether associations are nested in parent saves using autosave
This new association option is similar to the option of the same name found in ActiveRecord. When true, associated resources are always nested in a parent save. When false, they are never nested. When nil, only new resources are nested. Unlike ActiveRecord, the default is true (rather than nil) in order to preserve existing behaviour. This is also subject to whether send_only_modified_attributes is true or not. When true, only modified resources will be sent, even if autosave is true. Unlike before, it won't do strange things like fetch an existing has_one resource when you assign a new one because of change tracking. 4 of the specs currently fail because they require the fixes in my fix-change-tracking branch.
- Loading branch information
Showing
7 changed files
with
210 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.