Class: Service::Generators::CommandGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
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

#callObject



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