Skip to content

Commit

Permalink
Revert "Added warning that require_tree includes files in unspecified…
Browse files Browse the repository at this point in the history
… order. So, that people may know the order of their scripts might be the reason that their scripts work in just fine in development but not in production. "

This reverts commit 9dbd511.

Reason: Sounds like something for the guide, not the template.
  • Loading branch information
vijaydev committed Apr 25, 2012
1 parent dca1cd4 commit 9e962ff
Showing 1 changed file with 2 additions and 7 deletions.
Expand Up @@ -2,10 +2,10 @@
// listed below. // listed below.
// //
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // 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 // 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 // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
// GO AFTER THE REQUIRES BELOW. // GO AFTER THE REQUIRES BELOW.
Expand All @@ -14,9 +14,4 @@
//= require <%= options[:javascript] %> //= require <%= options[:javascript] %>
//= require <%= options[:javascript] %>_ujs //= require <%= options[:javascript] %>_ujs
<% end -%> <% 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 . //= require_tree .

0 comments on commit 9e962ff

Please sign in to comment.