Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add assets_gemfile_entry.

  • Loading branch information...
commit d74e1b1ac5dd69f090a8b9637ca2502d5226d3c8 1 parent 3da608e
@josevalim josevalim authored
View
10 railties/lib/rails/generators/app_base.rb
@@ -198,6 +198,16 @@ def turn_gemfile_entry
end
end
+ def assets_gemfile_entry
+ <<-GEMFILE.strip_heredoc
+ group :assets do
+ gem 'sass-rails', :git => 'git://github.com/rails/sass-rails'
+ gem 'coffee-rails', :git => 'git://github.com/rails/coffee-rails'
+ gem 'uglifier'
+ end
+ GEMFILE
+ end
+
def javascript_gemfile_entry
"gem '#{options[:javascript]}-rails'" unless options[:skip_javascript]
end
View
6 railties/lib/rails/generators/rails/app/templates/Gemfile
@@ -9,11 +9,7 @@ source 'http://rubygems.org'
# 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'
- gem 'coffee-rails', :git => 'git://github.com/rails/coffee-rails'
- gem 'uglifier'
-end
+<%= assets_gemfile_entry %>
<%= javascript_gemfile_entry %>
Please sign in to comment.
Something went wrong with that request. Please try again.