Class: ActiveMessaging::ProcessorGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- ActiveMessaging::ProcessorGenerator
- Defined in:
- lib/generators/active_messaging/processor/processor_generator.rb
Instance Method Summary collapse
- #copy_messaging ⇒ Object
-
#copy_processor ⇒ Object
check_class_collision :suffix=>“Processor”.
Instance Method Details
#copy_messaging ⇒ Object
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_processor ⇒ Object
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 |