Class: Devise::Generators::MarkerbGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Devise::Generators::MarkerbGenerator
- Includes:
- ViewPathTemplates
- Defined in:
- lib/generators/devise/views_generator.rb
Overview
:nodoc:
Instance Method Summary collapse
Methods included from ViewPathTemplates
Instance Method Details
#copy_views ⇒ Object
107 108 109 110 111 |
# File 'lib/generators/devise/views_generator.rb', line 107 def copy_views if ![:views] || [:views].include?('mailer') view_directory :markerb, target_path end end |
#target_path ⇒ Object
113 114 115 |
# File 'lib/generators/devise/views_generator.rb', line 113 def target_path "app/views/#{scope || :devise}/mailer" end |