diff --git a/templates/src/domain.rb.erb b/templates/src/domain.rb.erb index 3c18ef8..44580d5 100644 --- a/templates/src/domain.rb.erb +++ b/templates/src/domain.rb.erb @@ -1,31 +1,8 @@ -<% module_path[..-2].each do |part| %> +<% module_path.each do |part| %> module <%= part %> <% end %> -class <%= module_path.last %> < Foobara::Domain - # class SomeError < RuntimeError - # class << self - # def context_type_declaration - # { foo: :string } - # end - # end - # end - - inputs do - # some_input :string, :required, default: "foo" - end - - # depends_on SomeOtherDomain - - # possible_error SomeError - - def execute - # do_something - end - - # def validate - # add_runtime_error SomeError.new(message: "kaboom", context: {foo: :bar}) - # end + foobara_domain! <% module_path.size.times do %> end