Class: Service::Generators::CommandGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Service::Generators::CommandGenerator
- Includes:
- CommandServiceObject::ModelHelper
- Defined in:
- lib/generators/service/command/command_generator.rb
Instance Method Summary collapse
Methods included from CommandServiceObject::ModelHelper
#allowed_column_types, #ignored_column_names, #model_attributes, #model_class, #model_name
Instance Method Details
#call ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/generators/service/command/command_generator.rb', line 13 def call @model_attributes = model_attributes commands.each do |c| @command = c.classify create_main(c) create_test(c) end end |