Skip to content

Commit

Permalink
too tired
Browse files Browse the repository at this point in the history
  • Loading branch information
orangewolf committed Jan 11, 2024
1 parent 8d22405 commit c42a821
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions app/controllers/concerns/hyrax/works_controller_behavior.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def curation_concern_type=(curation_concern_type)
# We don't want the breadcrumb action to occur until after the concern has
# been loaded and authorized
before_action :save_permissions, only: :update # rubocop:disable Rails/LexicallyScopedActionFilter
prepend_before_action :store_location, only: :show
prepend_before_action :store_action, only: :show
end

def curation_concern_type
Expand Down Expand Up @@ -152,13 +152,6 @@ def json_manifest
end

private
def store_action
return unless request.get?
if (!request.xhr?) # don't store ajax calls
cookies[:reshare_url] = { value: request.fullpath, same_site: :none, secure: true }
end
end

def iiif_manifest_presenter
IiifManifestPresenter.new(search_result_document(id: params[:id])).tap do |p|
p.hostname = request.hostname
Expand Down

0 comments on commit c42a821

Please sign in to comment.