Skip to content

Commit

Permalink
Fix authorized applications list page design (mastodon#9969)
Browse files Browse the repository at this point in the history
  • Loading branch information
rinsuki authored and hiyuki2578 committed Oct 2, 2019
1 parent 943fbd9 commit 204f113
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/controllers/oauth/authorized_applications_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Oauth::AuthorizedApplicationsController < Doorkeeper::AuthorizedApplicatio

before_action :store_current_location
before_action :authenticate_resource_owner!
before_action :set_body_classes

include Localized

Expand All @@ -15,6 +16,10 @@ def destroy

private

def set_body_classes
@body_classes = 'admin'
end

def store_current_location
store_location_for(:user, request.url)
end
Expand Down

0 comments on commit 204f113

Please sign in to comment.