The code powering m.abunchtell.com https://m.abunchtell.com
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 

29 lignes
622 B

  1. # frozen_string_literal: true
  2. class Oauth::AuthorizedApplicationsController < Doorkeeper::AuthorizedApplicationsController
  3. skip_before_action :authenticate_resource_owner!
  4. before_action :store_current_location
  5. before_action :authenticate_resource_owner!
  6. before_action :set_body_classes
  7. skip_before_action :require_functional!
  8. include Localized
  9. def destroy
  10. Web::PushSubscription.unsubscribe_for(params[:id], current_resource_owner)
  11. super
  12. end
  13. private
  14. def set_body_classes
  15. @body_classes = 'admin'
  16. end
  17. def store_current_location
  18. store_location_for(:user, request.url)
  19. end
  20. end