Class: Service::Generators::EntityGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/service/entity/entity_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_microsObject



11
12
13
14
15
16
17
18
# File 'lib/generators/service/entity/entity_generator.rb', line 11

def create_micros
  entities.each do |m|
    @entity = m.classify

    path = "#{service_path}/entities/#{m.underscore}.rb"
    template 'entity.rb.erb', path
  end
end