Sha256: 8f388aade100ab76f92473707a4cdcf9318b3f910dca07a6ed07795c490da92c
Contents?: true
Size: 550 Bytes
Versions: 23
Compression:
Stored size: 550 Bytes
Contents
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
23 entries across 23 versions & 1 rubygems