Class: Eventboss::ListenerGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/eventboss/listener/listener_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_listener_scaffoldObject



16
17
18
# File 'lib/generators/eventboss/listener/listener_generator.rb', line 16

def create_listener_scaffold
  template 'eventboss_listener.rb.erb', "app/listeners/#{ event_name }_listener.rb"
end