diff --git a/railties/lib/rails/generators/rails/app/templates/app/assets/javascripts/application.js.tt b/railties/lib/rails/generators/rails/app/templates/app/assets/javascripts/application.js.tt index 040fe55220946ef360ff425451e9b6ec5e187b4a..f33a7f4ac23989de1600a8cbfb67ec40b75fbfc1 100644 --- a/railties/lib/rails/generators/rails/app/templates/app/assets/javascripts/application.js.tt +++ b/railties/lib/rails/generators/rails/app/templates/app/assets/javascripts/application.js.tt @@ -2,10 +2,10 @@ // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, -// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path. +// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path. // // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the -// the compiled file. +// the compiled file. // // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD // GO AFTER THE REQUIRES BELOW. @@ -14,9 +14,4 @@ //= require <%= options[:javascript] %> //= require <%= options[:javascript] %>_ujs <% end -%> -// -// require_tree includes all JavaScript/Coffee files present in asset path using an unspecified order. -// this may cause some scripts to break. -// To ensure some particular file ends up above some other in the final concatenated file, application.js -// Simply, require that prerequisite file first in the manifest. //= require_tree .