Class: Service::Generators::EntityGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Service::Generators::EntityGenerator
- Defined in:
- lib/generators/service/entity/entity_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_micros ⇒ Object
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 |