There's a config file config/initializers/inflections.rb that, as per this question lets you modify the puralization of certain items: ruby on rails pluralization help?
However, I'm not interested in that. I want to turn the automatic modification of generated model names off.
Here's an example:
rails generate scaffold UserData data1:string data2:string
Data is changed to 'Datum':
%] cat app/models/user_datum.rb
class UserDatum < ActiveRecord::Base
attr_accessible :data1, :data2
end
This is undesirable behaviour.
How do I turn it off?
Specifically if you can please; I've seen a few threads with people saying things like 'you'll have to modify the recipe for that', but no actual guide to doing this.
(I appreciate people are going to want to start answering this with 'you should just stick to the rails way of doing things, there's a good reason for this and it'll work out in the long run'; please dont)