Class: Workarea::Listrak::MessageGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/workarea/listrak/message/message_generator.rb

Overview

Generate new Message classes for your host app (or plugin).

Instance Method Summary collapse

Instance Method Details

#copy_agentObject



7
8
9
10
11
12
# File 'lib/generators/workarea/listrak/message/message_generator.rb', line 7

def copy_agent
  template(
    "message.rb.erb",
    "app/messages/workarea/#{file_name}_message.rb"
  )
end