method
assets_gemfile_entry
v3.2.13 -
Show latest stable
- Class:
Rails::Generators::AppBase
assets_gemfile_entry()protected
No documentation available.
# 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