Class: ActiveOperation::Generators::OperationGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/active_operation/operation/operation_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_operationObject



12
13
14
# File 'lib/generators/active_operation/operation/operation_generator.rb', line 12

def create_operation
  template 'operation.rb.erb', File.join('app/operations', class_path, "#{file_name}.rb")
end