Class: Rambulance::Generators::ExceptionsAppGenerator

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

:nodoc:



6
7
8
9
10
11
12
# File 'lib/generators/rambulance/exceptions_app_generator.rb', line 6

def self.banner #:nodoc:
  <<-BANNER.chomp
rails g rambulance:exceptions_app

    Creates a custom exceptions app.
BANNER
end

Instance Method Details

#copy_exceptions_appObject

:nodoc:



15
16
17
# File 'lib/generators/rambulance/exceptions_app_generator.rb', line 15

def copy_exceptions_app #:nodoc:
  copy_file "exceptions_app.rb", "app/handlers/exceptions_app.rb"
end