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:

Invokation from terminal

rails generate mailgun:tracking:install API_KEY ENDPOINT

Instance Method Summary collapse

Instance Method Details

#copy_initializer_fileObject

Copies the initialization file.


14
15
16
# File 'lib/generators/mailgun/tracking/install_generator.rb', line 14

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