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