0
0
Fork 0

Simplify instance presenter view access (#26046)

This commit is contained in:
Matt Jankowski 2023-09-28 10:52:37 -04:00 committed by GitHub
parent 2016c5d912
commit 340f1a68be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 5 additions and 58 deletions

View file

@ -9,17 +9,11 @@ module AccountControllerConcern
FOLLOW_PER_PAGE = 12
included do
before_action :set_instance_presenter
after_action :set_link_headers, if: -> { request.format.nil? || request.format == :html }
end
private
def set_instance_presenter
@instance_presenter = InstancePresenter.new
end
def set_link_headers
response.headers['Link'] = LinkHeader.new(
[