Class: Moromi::Error::Generators::ViewsGenerator

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

:nodoc:



9
10
11
12
13
14
# File 'lib/generators/moromi/error/views_generator.rb', line 9

def self.banner #:nodoc:
  <<-BANNER.chomp
rails g moromi:error:views [options]
    Copies all partial templates to your application.
  BANNER
end

Instance Method Details

#copy_or_fetchObject

: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