Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.

Commit

Permalink
Merge 8afa8bc into bd03ed8
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Nov 29, 2018
2 parents bd03ed8 + 8afa8bc commit ad9bb7c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions lib/dor/indexers/identifiable_indexer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ def initialize(resource:)
# @return [Hash] the partial solr document for identifiable concerns
def to_solr
solr_doc = {}
resource.assert_content_model

solr_doc[Dor::INDEX_VERSION_FIELD] = Dor::VERSION
solr_doc['indexed_at_dtsi'] = Time.now.utc.xmlschema
resource.datastreams.values.each do |ds|
Expand Down
2 changes: 0 additions & 2 deletions lib/dor/services/registration_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,6 @@ def register_object(params = {})
Array(params[:seed_datastream]).each { |datastream_name| new_item.build_datastream(datastream_name) }
Array(params[:initiate_workflow]).each { |workflow_id| new_item.create_workflow(workflow_id, !new_item.new_record?, workflow_priority) }

new_item.assert_content_model

new_item.class.ancestors.select { |x| x.respond_to?(:to_class_uri) && x != ActiveFedora::Base }.each do |parent_class|
new_item.add_relationship(:has_model, parent_class.to_class_uri)
end
Expand Down

0 comments on commit ad9bb7c

Please sign in to comment.