Rails::Initializer.run do |config|
config.active_record.pluralize_table_names = false
end
hi if i write the above code in environment.rb then it makes my all
table names singular instead of plural…or i can say i m removing
pluralization for all models.
but i m not finding any solution…how can i make pluralization false
for only one model…
i tried
class Book < ActiveRecord::Base.pluralize_table_names = false
end
but its not working…
i am waiting for answer…ASAP