Skip to content

Commit

Permalink
Merge pull request #231 from projecthydra/member_of_3
Browse files Browse the repository at this point in the history
Fixing foreign_key for ActiveFedora:Aggregation::Proxy
  • Loading branch information
mjgiarlo authored Aug 17, 2016
2 parents f8349d7 + a36d40b commit 57d18d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hydra/pcdm/models/concerns/object_behavior.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module ObjectBehavior
inserted_content_relation: RDF::Vocab::ORE.proxyFor,
class_name: 'ActiveFedora::Base',
through: 'ActiveFedora::Aggregation::Proxy',
foreign_key: :proxy_for,
foreign_key: :target,
type_validator: Validators::PCDMCollectionValidator
end

Expand Down
1 change: 1 addition & 0 deletions spec/hydra/pcdm/models/object_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,7 @@ class Foo < ActiveFedora::Base
subject do
object = described_class.new
object.member_of_collections = [collection1, collection2]
object.save
object
end

Expand Down

0 comments on commit 57d18d0

Please sign in to comment.