Class: Racecar::Generators::ConsumerGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/racecar/consumer_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_consumer_fileObject



8
9
10
# File 'lib/generators/racecar/consumer_generator.rb', line 8

def create_consumer_file
  template "consumer.rb.erb", "app/consumers/#{file_name}_consumer.rb"
end