method

assets_gemfile_entry

Importance_0
assets_gemfile_entry() protected

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 179
      def assets_gemfile_entry
        return if options[:skip_sprockets]

        gemfile = if options.dev? || options.edge?
                      # Use edge version of sprockets-rails            gem 'sprockets-rails', github: 'rails/sprockets-rails'            # Use SCSS for stylesheets            gem 'sass-rails', github: 'rails/sass-rails'            # Use Uglifier as compressor for JavaScript assets            gem 'uglifier', '>= 1.3.0'.strip_heredoc
        else
                      # Use SCSS for stylesheets            gem 'sass-rails', '~> 4.0.0'            # Use Uglifier as compressor for JavaScript assets            gem 'uglifier', '>= 1.3.0'.strip_heredoc
        end

        if options[:skip_javascript]
          gemfile +=             #{coffee_gemfile_entry}            #{javascript_runtime_gemfile_entry}
        end

        gemfile.gsub(/^[ \t]+/, '')
      end
Register or log in to add new notes.