documentcloud / jammit

Industrial Strength Asset Packaging for Rails
http://documentcloud.github.io/jammit/
MIT License
1.16k stars 197 forks source link

Prefixing Rails with :: and checking that ::Rails responds_to? env, root, etc #196

Closed rmw closed 2 years ago

rmw commented 13 years ago

I am using Jammit for asset packaging and in order to get the JST templates compiled, I am forcing Jammit to package in the jasmine_config.rb file. For some reason (probably having to do with rspec-rails updates), the Rails module doesn't respond to root, env, public_path etc anymore.

I have made changes to jammit.rb and controller.rb to prefix all Rails with :: and check that they respond_to? root, env, public_path etc.