Class: AirbrakeGenerator

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

Overview

Creates the Airbrake initializer file for Rails apps.

Examples:

Invokation from terminal

rails generate airbrake [NAME]

Instance Method Summary collapse

Instance Method Details

#generate_layoutObject



19
20
21
# File 'lib/generators/airbrake_generator.rb', line 19

def generate_layout
  template 'airbrake_initializer.rb.erb', 'config/initializers/airbrake.rb'
end