lib/generators/blacklight/install_generator.rb in blacklight-5.11.3 vs lib/generators/blacklight/install_generator.rb in blacklight-5.12.0

- old
+ new

@@ -4,10 +4,11 @@ source_root File.expand_path('../templates', __FILE__) argument :model_name , type: :string , default: "user" argument :controller_name, type: :string , default: "catalog" argument :document_name, type: :string , default: "solr_document" + argument :search_builder_name, type: :string , default: "search_builder" class_option :devise , type: :boolean, default: false, aliases: "-d", desc: "Use Devise as authentication logic." class_option :jettywrapper, type: :boolean, default: false, desc: "Use jettywrapper to download and control Jetty" class_option :marc , type: :boolean, default: false, aliases: "-m", desc: "Generate MARC-based demo ." @@ -53,10 +54,14 @@ def generate_blacklight_document generate 'blacklight:document', document_name end + def generate_search_builder + generate 'blacklight:search_builder', search_builder_name + end + def generate_blacklight_models generate 'blacklight:models' end def generate_blacklight_user @@ -101,10 +106,10 @@ Bundler.with_clean_env do run "bundle install" end - generate 'blacklight_marc:marc' + generate 'blacklight:marc:install' end end end end