lib/generators/blacklight/assets_generator.rb
# Add sprockets javascript to Rails 6.
Add sprockets javascript to Rails 6.
Add sprockets javascript to Rails 6 .
def create_sprockets_javascript
      return if Rails.version < '6.0.0'
      create_file 'app/assets/javascripts/application.js' do
        <<~CONTENT
          //= require jquery3
          //= require rails-ujs
          //= require turbolinks
        CONTENT
      end
    end
def create_sprockets_javascript return if Rails . version < '6.0.0' create_file 'app/assets/javascripts/application.js' do <<~CONTENT 
          //= require jquery3
          //= require rails-ujs
          //= require turbolinks
         CONTENT end end
Add sprockets javascript to Rails 6.
Add sprockets javascript to Rails 6 .