-
Notifications
You must be signed in to change notification settings - Fork 5
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
Changed to allow a different user class from User. And not step on existing current_user methods. #5
base: master
Are you sure you want to change the base?
Conversation
…n an existing current_user method. Changed the user association to be polymorphic so that classes other then user can be used.
Hello Dusty, Since this is a mountable Engine, I think every method under the kublog On Tue, Apr 17, 2012 at 10:26 PM, Dusty Candland <
Adrian Cuadros |
Hi Adrian, I think that is generally the case too, except for the current_user method I have another app like this, but since the User is using a relational DB, I would rather have made the models support a Mongoid, but I'm not sure how Thoughts? Thanks for considering these changes! Dusty On Fri, Apr 20, 2012 at 8:57 AM, Adrian Cuadros <
|
Changed current_user to kublog_current_user so that it doesn't step on an existing current_user method. Changed the user association to be polymorphic so that classes other then user can be used.
this will be a breaking change in the application controller. Any current_user method will need to be changed or added to kublog_current_user.
def kublog_current_user
current_user
end