diff --git a/lib/generators/categoria/initializer_generator.rb b/lib/generators/categoria/initializer_generator.rb index fe1128a..3b95266 100644 --- a/lib/generators/categoria/initializer_generator.rb +++ b/lib/generators/categoria/initializer_generator.rb @@ -4,6 +4,8 @@ module Categoria module Generators class InitializerGenerator < ::Rails::Generators::Base + extend T::Sig + sig { void } def create_categoria_initializer_file in_root do diff --git a/test/domain_driven/config/initializers/categoria.rb b/test/domain_driven/config/initializers/categoria.rb new file mode 100644 index 0000000..78eb0be --- /dev/null +++ b/test/domain_driven/config/initializers/categoria.rb @@ -0,0 +1,6 @@ +# frozen_string_literal: true + +Rails.autoloaders.main.push_dir( + "#{Rails.root}/app/lib", + namespace: Rails.application.class.module_parent +)