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

Extract model callbacks #525

Merged

Conversation

merqlove
Copy link
Contributor

@merqlove merqlove commented Feb 5, 2016

Added these changes for the case if we need custom callbacks.
For example, i have User model with multiple providers, so model don't have fields provider & uid at all, instead it has_many on oauths.

  • Extract model callbacks.
  • Add setting for extracted callbacks. Load it by default.
  • Update generator template.
  • Add line to readme.

…efault. Fix generator template. Add line to readme.
@merqlove merqlove force-pushed the split-model-callbacks branch from 9760a8b to 4a9df4f Compare February 5, 2016 21:30
@booleanbetrayal
Copy link
Collaborator

LGTM! Thanks @merqlove !

booleanbetrayal added a commit that referenced this pull request Feb 14, 2016
@booleanbetrayal booleanbetrayal merged commit a959e11 into lynndylanhurley:master Feb 14, 2016
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.

2 participants