Skip to content

Commit

Permalink
Don't convert object_ids.
Browse files Browse the repository at this point in the history
  • Loading branch information
Trey Terrell committed Oct 12, 2015
1 parent 81dd3a6 commit 0e9fc55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/hydra/pcdm/object_indexer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Hydra::PCDM
class ObjectIndexer < ActiveFedora::IndexingService
def generate_solr_document
super.tap do |solr_doc|
solr_doc['object_ids_ssim'] = object.object_ids.to_a
solr_doc['object_ids_ssim'] = object.object_ids
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/hydra/pcdm/models/object_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
let(:object) { described_class.new }
before { object.members = [child1, child2] }

subject { object.object_ids.to_a }
subject { object.object_ids }

it { is_expected.to eq %w(1 2) }
end
Expand Down

0 comments on commit 0e9fc55

Please sign in to comment.