i have created an engine with
rails plugin new myengine --mountable
when searching for 'inflections' in the project folder, i find the /test/dummy/config/initializers/inflections.rb file
in this file i put
ActiveSupport::Inflector.inflections(:en) do |inflect|
inflect.irregular 'singular_model', 'plural_model'
end
when i try to use the model generator (from project root)
bin/rails generate model singular_model
then i get the a migration with singular_models as the table name and migration name
when i run the same command from myengine/test/dummy
bin/rails generate model singular_model
i get the spected result: plural_model as table name and migration name
so, how can i load the inflector into the rails generator?