Class: Rambulance::Generators::ExceptionsAppGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Rambulance::Generators::ExceptionsAppGenerator
- Defined in:
- lib/generators/rambulance/exceptions_app_generator.rb
Class Method Summary collapse
-
.banner ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#copy_exceptions_app ⇒ Object
:nodoc:.
Class Method Details
.banner ⇒ Object
:nodoc:
6 7 8 9 10 11 12 |
# File 'lib/generators/rambulance/exceptions_app_generator.rb', line 6 def self. #:nodoc: <<-BANNER.chomp rails g rambulance:exceptions_app Creates a custom exceptions app. BANNER end |
Instance Method Details
#copy_exceptions_app ⇒ Object
: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 |