Class: Mailgun::Tracking::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/mailgun/tracking/install_generator.rb

Overview

Creates the Mailgun Tracking initializer file for Rails apps.

Examples:

Invocation from terminal

rails generate mailgun:tracking:install API_KEY ENDPOINT

Instance Method Summary collapse

Instance Method Details

#copy_initializer_fileObject

Copies the initialization file.



16
17
18
# File 'lib/generators/mailgun/tracking/install_generator.rb', line 16

def copy_initializer_file
  template('mailgun_tracking.rb.erb', 'config/initializers/mailgun_tracking.rb')
end