Class: Blacklight::AssetsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Blacklight::AssetsGenerator
- Defined in:
- lib/generators/blacklight/assets_generator.rb
Instance Method Summary collapse
Instance Method Details
#run_asset_pipeline_specific_generator ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/generators/blacklight/assets_generator.rb', line 7 def run_asset_pipeline_specific_generator = "--bootstrap-version='#{[:'bootstrap-version']}'" if [:'bootstrap-version'] generator = if defined?(Propshaft) 'blacklight:assets:propshaft' elsif defined?(Importmap) 'blacklight:assets:importmap' elsif defined?(Sprockets) 'blacklight:assets:sprockets' end generate generator, if generator end |