Hi guys, awesome work with this lib, thank you a lot.
I am having some trouble now that I have my models deep nested with namespaces and they are not on app/models folder.
Here is the example:
I have a model at: MY_APPLICATION_ROOT_FOLDER/infrastructure/models/sales/charge.rb
My model:
module Infrastructure
module Models
module Sales
class Charge < ::ActiveRecord::Base
self.table_name = 'charges'
end
end
end
end
And my fabricator at spec/fabricators/charge_fabricator.rb
Fabricator(:infrastructure_models_sales_charge, aliases: [:sales_charge], class_name: "::Infrastructure::Models::Sales::Charge") do
attributes...
end
Hi guys, awesome work with this lib, thank you a lot. I am having some trouble now that I have my models deep nested with namespaces and they are not on app/models folder. Here is the example:
I have a model at: MY_APPLICATION_ROOT_FOLDER/infrastructure/models/sales/charge.rb My model:
And my fabricator at spec/fabricators/charge_fabricator.rb
And I am getting a weird error saying:
Am I doing something wrong?