method

asset_pipeline_gemfile_entry

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: AppBase
asset_pipeline_gemfile_entry() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File railties/lib/rails/generators/app_base.rb, line 172
      def asset_pipeline_gemfile_entry
        return [] if options[:skip_asset_pipeline]

        if options[:asset_pipeline] == "sprockets"
          GemfileEntry.floats "sprockets-rails",
            "The original asset pipeline for Rails [https://github.com/rails/sprockets-rails]"
        elsif options[:asset_pipeline] == "propshaft"
          GemfileEntry.floats "propshaft", "The modern asset pipeline for Rails [https://github.com/rails/propshaft]"
        else
          []
        end
      end
Register or log in to add new notes.