Move link header setting to after_action (#24251)
This commit is contained in:
parent
b9e34ef098
commit
0663803348
2 changed files with 4 additions and 2 deletions
|
@ -10,7 +10,8 @@ module AccountControllerConcern
|
|||
|
||||
included do
|
||||
before_action :set_instance_presenter
|
||||
before_action :set_link_headers, if: -> { request.format.nil? || request.format == :html }
|
||||
|
||||
after_action :set_link_headers, if: -> { request.format.nil? || request.format == :html }
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue