Changed to allow a different user class from User. And not step on existing current_user methods.#5
Changed to allow a different user class from User. And not step on existing current_user methods.#5candland wants to merge 1 commit intoinnku:masterfrom
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