-
-
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
TokensController and TokenInfoController inherit ActionController::Metal #443
Conversation
module Doorkeeper | ||
class ApplicationMetalController < ActionController::Base | ||
MODULES = [ | ||
ActionController::RackDelegation, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use 2 spaces for indentation in an array, relative to the start of the line where the left bracket is.
TokensController and TokenInfoController inherit ActionController::Metal
Thank you! |
There are no details as to why this change was made. Is there a particular reason for it? I ask because this breaks the ability to use Devise/Warden when invoking |
@kolorahl +1! I'm also interested in it. |
@kolorahl @igrep According to learn its Besides, I can't see where invoke |
@jasl Looking at the conversation, I can definitely see why you guys got rid of the extra includes now, but I'm still not sure what the benefit of As far as the invocation of resource_owner_from_credentials do
current_user
end When hitting the |
@kolorahl I will check what you point out, thank for you reporting. |
Sure thing. Let me know if you want me to put this in a bug ticket. I'll let you do a bit of investigation first, though. |
@kolorahl |
Opened issue #504 in regards to this discussion. |
At the moment it made sense to me as a general rule of thumb, but now I consider it was my mistake, as I didn't have before/after performance tests to compare them. I'd love to have them, and know what's better, for now we don't know if inheriting form |
@tute The problem is no comment told why According to |
Actually spending two months really busy work, I have some free time now. |
No description provided.