Sha256: c4e21df76822f98473e28b499afd3b1d6bc0fd435b50f8210a25d3d343aef82a
Contents?: true
Size: 585 Bytes
Versions: 31
Compression:
Stored size: 585 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 <<-EOS This generator makes the following changes to your application: 1. Creates a blacklight document in your /app/models directory EOS 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