Sha256: fa9754a433d4bf2367110afeb1f57a1f60b3323a7568da0cd31df8b63296dc0f
Contents?: true
Size: 536 Bytes
Versions: 31
Compression:
Stored size: 536 Bytes
Contents
require 'rails/generators' module Blacklight class DocumentGenerator < Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path('../templates', __FILE__) argument :model_name, :type => :string , :default => "solr_document" desc """ This generator makes the following changes to your application: 1. Creates a blacklight document in your /app/models directory """ def create_solr_document template "solr_document.rb", "app/models/#{model_name}.rb" end end end
Version data entries
31 entries across 31 versions & 1 rubygems