Skip to content

Commit

Permalink
extend t::sig
Browse files Browse the repository at this point in the history
  • Loading branch information
yawboakye committed Jun 21, 2024
1 parent 11d9207 commit 021a7fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/generators/categoria/initializer_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions test/domain_driven/config/initializers/categoria.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# frozen_string_literal: true

Rails.autoloaders.main.push_dir(
"#{Rails.root}/app/lib",
namespace: Rails.application.class.module_parent
)

0 comments on commit 021a7fc

Please sign in to comment.