If I build a model named 'Config', things break. The model generator
is supposed to prevent name collisions like this (class_collisions in
lib/rails_generator/commands.rb) but for some reason it's never
checking for collisions with Config, only with ConfigTest.
Note: the rspec_model generator does properly fail with a collision in
this case.
This is on Rails 2.3.4. To reproduce:
script/generate scaffold config name:string
Then try to view /configs in the browser:
NoMethodError in ConfigsController#index
undefined method `all' for Config:Module