Class: Hyrax::CleanConnection

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
app/connections/hyrax/clean_connection.rb

Overview

This stands in for ActiveFedora::CleanConnection. It behaves the same way, but it doesn’t clear the has_model assertion

Instance Method Summary collapse

Instance Method Details

#get(*args) ⇒ Object



6
7
8
9
10
11
12
13
# File 'app/connections/hyrax/clean_connection.rb', line 6

def get(*args)
  result = __getobj__.get(*args) do |req|
    prefer_headers = Ldp::PreferHeaders.new(req.headers["Prefer"])
    prefer_headers.omit = prefer_headers.omit | omit_uris
    req.headers["Prefer"] = prefer_headers.to_s
  end
  result
end