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