Sha256: baafcb6b57e6cc58e4ac341255b458852ff0d1243b3b0d18140eb0d0a300046a
Contents?: true
Size: 326 Bytes
Versions: 12
Compression:
Stored size: 326 Bytes
Contents
require 'rails/generators' namespace :blacklight_range_limit do desc 'Add in additional Solr docs' task seed: :environment do solr = CatalogController.new.repository.connection docs = Dir['spec/fixtures/solr_documents/*.yml'].map { |f| YAML.load File.read(f) }.flatten solr.add docs solr.commit end end
Version data entries
12 entries across 12 versions & 1 rubygems