lib/generators/blacklight/install_generator.rb in blacklight-6.6.2 vs lib/generators/blacklight/install_generator.rb in blacklight-6.7.0

- old
+ new

@@ -92,19 +92,19 @@ def inject_blacklight_i18n_strings copy_file "blacklight.en.yml", "config/locales/blacklight.en.yml" end def generate_blacklight_marc_demo - if options[:marc] - blacklight_marc = String.new('blacklight-marc') - gem blacklight_marc, '~> 6.1' + return unless options[:marc] - Bundler.with_clean_env do - run "bundle install" - end + blacklight_marc = String.new('blacklight-marc') + gem blacklight_marc, '~> 6.1' - generate 'blacklight:marc:install' + Bundler.with_clean_env do + run "bundle install" end + + generate 'blacklight:marc:install' end def add_routes route "mount Blacklight::Engine => '/'" end