Class: Moromi::Error::Generators::ViewsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Moromi::Error::Generators::ViewsGenerator
- Defined in:
- lib/generators/moromi/error/views_generator.rb
Class Method Summary collapse
-
.banner ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#copy_or_fetch ⇒ Object
:nodoc:.
Class Method Details
.banner ⇒ Object
:nodoc:
9 10 11 12 13 14 |
# File 'lib/generators/moromi/error/views_generator.rb', line 9 def self. #:nodoc: <<-BANNER.chomp rails g moromi:error:views [options] Copies all partial templates to your application. BANNER end |
Instance Method Details
#copy_or_fetch ⇒ Object
:nodoc:
17 18 19 20 |
# File 'lib/generators/moromi/error/views_generator.rb', line 17 def copy_or_fetch #:nodoc: copy_html_templates copy_json_templates end |