Class: ActiveMessaging::ProcessorGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/active_messaging/processor/processor_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_messagingObject



12
13
14
# File 'lib/generators/active_messaging/processor/processor_generator.rb', line 12

def copy_messaging
  template "messaging.rb", "config/messaging.rb"
end

#copy_processorObject

check_class_collision :suffix=>“Processor”



8
9
10
# File 'lib/generators/active_messaging/processor/processor_generator.rb', line 8

def copy_processor
  template "processor.rb", "app/processors/#{file_name}_processor.rb"
end