instance method
assets_gemfile_entry
Ruby on Rails 3.1.12
Since v3.1.12 Last seen in v3.2.22.5Available in: v3.1.12 v3.2.22.5
Signature
assets_gemfile_entry()
No documentation comment.
Source
# File railties/lib/rails/generators/app_base.rb, line 203
def assets_gemfile_entry
return if options[:skip_sprockets]
gemfile = <<-GEMFILE.strip_heredoc
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', #{options.dev? || options.edge? ? " :git => 'git://github.com/rails/sass-rails.git', :branch => '3-1-stable'" : " '~> 3.1.5'"}
gem 'coffee-rails', #{options.dev? || options.edge? ? ":git => 'git://github.com/rails/coffee-rails.git', :branch => '3-1-stable'" : "'~> 3.1.1'"}
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
#{javascript_runtime_gemfile_entry}
gem 'uglifier', '>= 1.0.3'
end
GEMFILE
gemfile.strip_heredoc.gsub(/^[ \t]*$/, '')
end
Defined in railties/lib/rails/generators/app_base.rb line 203
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Generators::AppBase