lib/generators/blacklight/install_generator.rb in blacklight-8.0.1 vs lib/generators/blacklight/install_generator.rb in blacklight-8.1.0

- old
+ new

@@ -1,9 +1,7 @@ # frozen_string_literal: true -require 'shellwords' - module Blacklight class Install < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) argument :model_name, type: :string, default: "user" @@ -35,10 +33,10 @@ # Copy all files in templates/public/ directory to public/ # Call external generator in AssetsGenerator, so we can # leave that callable seperately too. def copy_public_assets - generated_options = "--bootstrap-version='#{Shellwords.escape(options[:'bootstrap-version'])}'" if options[:'bootstrap-version'] + generated_options = "--bootstrap-version='#{options[:'bootstrap-version']}'" if options[:'bootstrap-version'] generate "blacklight:assets", generated_options unless options[:'skip-assets'] end def bundle_install