Class: Blacklight::DocumentGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Rails::Generators::Migration
Defined in:
lib/generators/blacklight/document_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_solr_documentObject



18
19
20
# File 'lib/generators/blacklight/document_generator.rb', line 18

def create_solr_document
  template "solr_document.rb", "app/models/#{model_name}.rb"
end