Skip to content
Browse files

Merge pull request #10357 from arunagw/minor-code-deuplication-remove…

…d-app-generator

Minor code duplication removed
  • Loading branch information...
2 parents 2444444 + bca866e commit 1e5ee397ff371720cc50fe6445b8f9f0a4cdbffc @rafaelfranca rafaelfranca committed Apr 30, 2013
Showing with 6 additions and 6 deletions.
  1. +6 −6 railties/lib/rails/generators/app_base.rb
View
12 railties/lib/rails/generators/app_base.rb
@@ -186,20 +186,20 @@ def assets_gemfile_entry
# Use SCSS for stylesheets
gem 'sass-rails', github: 'rails/sass-rails'
-
- # Use Uglifier as compressor for JavaScript assets
- gem 'uglifier', '>= 1.3.0'
GEMFILE
else
<<-GEMFILE.strip_heredoc
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.0.rc1'
-
- # Use Uglifier as compressor for JavaScript assets
- gem 'uglifier', '>= 1.3.0'
GEMFILE
end
+ gemfile += <<-GEMFILE.strip_heredoc
+
+ # Use Uglifier as compressor for JavaScript assets
+ gem 'uglifier', '>= 1.3.0'
+ GEMFILE
+
if options[:skip_javascript]
gemfile += <<-GEMFILE
#{coffee_gemfile_entry}

0 comments on commit 1e5ee39

Please sign in to comment.
Something went wrong with that request. Please try again.