Class: ActiveFedora::InboundRelationConnection
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- ActiveFedora::InboundRelationConnection
- Defined in:
- lib/active_fedora/inbound_relation_connection.rb
Instance Method Summary collapse
Instance Method Details
#get(*args) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/active_fedora/inbound_relation_connection.rb', line 3 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 |