Sha256: 117ac4777d5dc6f4b8cc5178aed55dd0a4e27d5dbc5474f128063089add8b5b7
Contents?: true
Size: 566 Bytes
Versions: 3
Compression:
Stored size: 566 Bytes
Contents
# frozen_string_literal: true 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
3 entries across 3 versions & 1 rubygems