Skip to content

Callback rework#65

Merged
dgeb merged 8 commits into
masterfrom
callback_rework
Jan 23, 2015
Merged

Callback rework#65
dgeb merged 8 commits into
masterfrom
callback_rework

Conversation

@lgebhardt
Copy link
Copy Markdown
Contributor

Reworks the operations processor callbacks to use ActiveSupport callbacks.
Adds callbacks to resource operations.
Reworks create_has_many_link to create_has_many_links.

Comment thread lib/jsonapi/resource.rb Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_remove and all the other underscored methods should be private.

@barelyknown
Copy link
Copy Markdown
Collaborator

I sent a PR to the callback_rework branch with README documentation. https://github.com/cerebris/jsonapi-resources/pull/66

@lgebhardt
Copy link
Copy Markdown
Contributor Author

@dgeb, I moved the new methods down into the private section. The other underscored methods that are public need to stay that way.

Add README content for callbacks.
@dgeb
Copy link
Copy Markdown
Contributor

dgeb commented Jan 23, 2015

@lgebhardt thanks for making those updates. Looks like there's still some public / private labeling and indentation confusion.

dgeb added a commit that referenced this pull request Jan 23, 2015
@dgeb dgeb merged commit d867800 into master Jan 23, 2015
@dgeb
Copy link
Copy Markdown
Contributor

dgeb commented Jan 23, 2015

Great work @lgebhardt and @barelyknown! :shipit:

@lgebhardt lgebhardt deleted the callback_rework branch January 23, 2015 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants