Use driver_ujs now that we no longer have to depend on a shared name and...

Use driver_ujs now that we no longer have to depend on a shared name and insert all prototype dependencies if thats specified
上级 26528efb
......@@ -124,7 +124,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", "vendor/assets/javascripts/rails.js"
copy_file "vendor/assets/javascripts/#{options[:javascript]}_ujs.js"
if options[:javascript] == "prototype"
copy_file "vendor/assets/javascripts/controls.js"
......
# FIXME: Tell people that this is a manifest file, real code should go into discrete files
# FIXME: Tell people how Sprockets and CoffeeScript works
#
#= require <%= options[:javascript] %>
#= require <%= options[:javascript] %>_ujs
<% if options[:javascript] == "prototype" %>
#= require controls
#= require dragdrop
#= require effects
<% end -%>
#= require_tree .
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册