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

Commit

Permalink
Assert content model before solrizing
Browse files Browse the repository at this point in the history
  • Loading branch information
mbklein committed Feb 23, 2012
1 parent 7a4e372 commit b5cb982
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion lib/dor/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def after_config! config
temp_v = $-v
$-v = nil
begin
Object.const_set(:ENABLE_SOLR_UPDATES,false)
fedora_uri = URI.parse(config.fedora.url)
ActiveFedora::RubydoraConnection.connect :url => config.fedora.safeurl,
:user => fedora_uri.user, :password => fedora_uri.password,
Expand Down
1 change: 1 addition & 0 deletions lib/dor/identifiable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def method_missing sym, *args
end

def to_solr(solr_doc=Hash.new)
self.assert_content_model
super(solr_doc)
add_solr_value(solr_doc, 'dor_services_version', Dor::VERSION, :string)
solr_doc
Expand Down

0 comments on commit b5cb982

Please sign in to comment.