Is there a way you can include all files in a directory except one, or all directories except one? So something like:
require_tree . :except \'this_one\'
Depending on the version of your environment the following may be possible:
//= require_tree "." exclude: "file1", "file2"
See this SO thread: Rails 3.1 Sprockets require directives - is there a way to exclude particular files?. Never tried it myself, though.
Instead of
require_tree . :except 'this_one'
write
require_tree "."
stub "this_one"