documentcloud / jammit

Industrial Strength Asset Packaging for Rails
http://documentcloud.github.com/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 1 year ago

rmw commented 12 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.