-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
extending the devise_token_auth user model #4
Comments
My next step is to break out all of the User model methods into a concern. So you will be able to do something like this: class User < ActiveRecord::Base
include DeviseTokenAuth::Concerns::UserModel
# extend the model as you like
has_many :whatever
end I also plan to allow for specifying models other than I hope to release these features within the next day or two. |
@evbots - I just completed work on this. I'll merge into master and push a new release tomorrow morning after I update the documentation. In the mean time, the code is on this branch: |
Thanks - i've been monkey-patching the user model change so far and it's been less than ideal. look forward to your changes. |
I just pushed everything to master. There have been some changes to the configuration process, see the updated readme for details: I'll push another release to rubygems within the next few hours. |
just a heads up I don't think rubygems has been updated yet. |
Oh man I thought I pushed last night! I'll push again to be sure. Thx!
|
Actually 0.1.22 depends on a newer version of rails than I had. Updated rails and everything worked, thanks. |
Do you suggest a best practice for extending the User model? Attempting to add associations to the user model. There seem to be many ways to accomplish this.
The text was updated successfully, but these errors were encountered: