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

        gemfile = if options.dev? || options.edge?
                      # Gems used only for assets and not required            # in production environments by default.            group :assets do              gem 'sass-rails',   :git => 'git://github.com/rails/sass-rails.git',   :branch => '3-2-stable'              gem 'coffee-rails', :git => 'git://github.com/rails/coffee-rails.git', :branch => '3-2-stable'              # See https://github.com/sstephenson/execjs#readme for more supported runtimes              #{javascript_runtime_gemfile_entry}              gem 'uglifier', '>= 1.0.3'            end
        else
                      # Gems used only for assets and not required            # in production environments by default.            group :assets do              gem 'sass-rails',   '~> 3.2.3'              gem 'coffee-rails', '~> 3.2.1'              # See https://github.com/sstephenson/execjs#readme for more supported runtimes              #{javascript_runtime_gemfile_entry}              gem 'uglifier', '>= 1.0.3'            end
        end

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