Class: Blacklight::AssetsGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/blacklight/assets_generator.rb

Instance Method Summary collapse

Instance Method Details

#run_asset_pipeline_specific_generatorObject



9
10
11
12
13
14
15
# File 'lib/generators/blacklight/assets_generator.rb', line 9

def run_asset_pipeline_specific_generator
  generated_options = "--bootstrap-version='#{Shellwords.escape(options[:'bootstrap-version'])}'" if options[:'bootstrap-version']

  # Blacklight 7.x JS is distributed via Sprockets (//= require directives, jQuery, etc.)
  # so we always use the sprockets generator regardless of what Rails defaulted to.
  generate 'blacklight:assets:sprockets', generated_options
end