documentcloud / jammit

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

jammit breaks 'rails g' listing #193

Open nicholasf opened 13 years ago

nicholasf commented 13 years ago

Hi,

After having installed Jammit in a Rails 3.0.9 app, and running 'rails g', I see:


andromeda:ada-cms nicholas$ rails g
/Users/nicholas/.rvm/gems/ruby-1.9.2-p0/bundler/gems/jammit-3dedc9dffe04/lib/jammit.rb:73:in `load_configuration': undefined method `has_key?' for false:FalseClass (NoMethodError)
    from /Users/nicholas/.rvm/gems/ruby-1.9.2-p0/bundler/gems/jammit-3dedc9dffe04/lib/jammit/dependencies.rb:28:in `<top (required)>'
    from /Users/nicholas/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in `require'
    from /Users/nicholas/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in `block in

Which seems to be issuing from:


 27 # Load initial configuration before the rest of Jammit.
 28 Jammit.load_configuration(Jammit::DEFAULT_CONFIG_PATH, true) if defined?(Rails)

The list of available rails generators obviously shouldn't be broken.

Cheers, Nicholas