Move the asset template engines to the user-generated Gemfile

上级 23aa7dac
......@@ -134,7 +134,6 @@ def rails_gemfile_entry
gem 'arel', :git => 'git://github.com/rails/arel.git'
gem 'rack', :git => 'git://github.com/rack/rack.git'
gem 'sprockets', :git => "git://github.com/sstephenson/sprockets.git"
gem 'coffee-script'
gem 'json' # CoffeeScript and Sprockets dependency
GEMFILE
elsif options.edge?
......@@ -143,7 +142,6 @@ def rails_gemfile_entry
gem 'arel', :git => 'git://github.com/rails/arel.git'
gem 'rack', :git => 'git://github.com/rack/rack.git'
gem 'sprockets', :git => "git://github.com/sstephenson/sprockets.git"
gem 'coffee-script'
gem 'json' # CoffeeScript and Sprockets dependency
GEMFILE
else
......
......@@ -125,7 +125,7 @@ def vendor_javascripts
empty_directory_with_gitkeep "vendor/assets/javascripts"
else
copy_file "vendor/assets/javascripts/#{options[:javascript]}.js"
copy_file "vendor/assets/javascripts/#{options[:javascript]}_ujs.js"
copy_file "vendor/assets/javascripts/#{options[:javascript]}_ujs.js", "vendor/assets/javascripts/rails.js"
if options[:javascript] == "prototype"
copy_file "vendor/assets/javascripts/controls.js"
......
......@@ -4,6 +4,10 @@ source 'http://rubygems.org'
<%= database_gemfile_entry -%>
# Asset template engines
gem 'coffee-script'
gem 'sass'
# Use unicorn as the web server
# gem 'unicorn'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册