Module: Doorkeeper::Helpers::Filter
- Defined in:
- lib/doorkeeper/helpers/filter.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
23 24 25 26 |
# File 'lib/doorkeeper/helpers/filter.rb', line 23 def self.included(base) base.extend ClassMethods base.send :private, :doorkeeper_token, :doorkeeper_unauthorized_render_options end |
Instance Method Details
#doorkeeper_token ⇒ Object
28 29 30 31 |
# File 'lib/doorkeeper/helpers/filter.rb', line 28 def doorkeeper_token methods = Doorkeeper.configuration.access_token_methods @token ||= OAuth::Token.authenticate request, *methods end |
#doorkeeper_unauthorized_render_options ⇒ Object
33 34 35 |
# File 'lib/doorkeeper/helpers/filter.rb', line 33 def nil end |