To my understanding, all of your JavaScript gets merged into 1 file. Rails does this by default when it adds //= require_tree . to the bottom of your appl
//= require_tree .
appl
Maybe you will find pluggable_js gem as suitable solution.