Class: ActiveFedora::InboundRelationConnection

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/active_fedora/inbound_relation_connection.rb

Overview

Use this connection judiciously, on fedora 4.3, these requests may be 3-5x slower, and make a graph that takes longer to parse.

Instance Method Summary collapse

Instance Method Details

#get(*args) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/active_fedora/inbound_relation_connection.rb', line 5

def get(*args)
  result = __getobj__.get(*args) do |req|
    prefer_headers = Ldp::PreferHeaders.new(req.headers["Prefer"])
    prefer_headers.include = prefer_headers.include | include_uris
    req.headers["Prefer"] = prefer_headers.to_s
    yield req if block_given?
  end
  result
end