Class: Sooner::ViewsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Sooner::ViewsGenerator
- Defined in:
- lib/generators/sooner/views/views_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_views ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/generators/sooner/views/views_generator.rb', line 11 def copy_views case [:template_engine] when "haml" verify_haml_existence verify_haml_version create_and_copy_haml_views else directory "sooner", "app/views/#{scope || 'sooner'}" end end |