Sha256: 246a9d94296c49f4b14d6ba45698c8e75e6aaa0983abbc55289f52663439f25c

Contents?: true

Size: 382 Bytes

Versions: 4

Compression:

Stored size: 382 Bytes

Contents

module Workarea
  module Listrak
    # Generate new Message classes for your host app (or plugin).
    class MessageGenerator < Rails::Generators::NamedBase
      source_root File.expand_path("../templates", __FILE__)

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
workarea-listrak-5.0.4 lib/generators/workarea/listrak/message/message_generator.rb
workarea-listrak-5.0.3 lib/generators/workarea/listrak/message/message_generator.rb
workarea-listrak-5.0.2 lib/generators/workarea/listrak/message/message_generator.rb
workarea-listrak-5.0.1 lib/generators/workarea/listrak/message/message_generator.rb