Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide access to underlying model during build/update/save process closer mirroring rails patterns #465

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Sep 22, 2024

  1. Provide access to underlying model during build/update/save process, …

    …closer mirroring rails controller patterns.
    
    Changes:
     - (for creates):
    	@resource = MyResource.build(params);
    	@resource.data #=> unsaved model with attributes applied
     - (for updates):
    	@resource = MyResource.find(params);
    	@resource.assign_attributes
    	@resource.data #=> unsaved model with attributes applied
    jkeen committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    05b0ec3 View commit details
    Browse the repository at this point in the history
  2. Remove default callback for assignment to keep callback order in tact…

    … for possible compatibility issues
    jkeen committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    8997e49 View commit details
    Browse the repository at this point in the history