Class: DoorkeeperHub::CallbacksController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- DoorkeeperHub::CallbacksController
- Defined in:
- app/controllers/doorkeeper_hub/callbacks_controller.rb
Instance Method Summary collapse
Instance Method Details
#activation ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'app/controllers/doorkeeper_hub/callbacks_controller.rb', line 3 def activation return if params[:access_token] != DoorkeeperHub.config.service_token # {name, access_token, doorkeeper_token, active, options} record = DoorkeeperHub.config.scope_model.find_or_initialize_by( DoorkeeperHub.token_name => params[DoorkeeperHub.token_name] ) record.update active: params[:active], name: params[:name] render body: nil end |