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
#plural_scope, #view_directory
Instance Method Details
#copy_views ⇒ Object
118 119 120 121 122 |
# File 'lib/generators/devise/views_generator.rb', line 118 def copy_views if ![:views] || [:views].include?('mailer') view_directory :markerb, target_path end end |
#target_path ⇒ Object
124 125 126 |
# File 'lib/generators/devise/views_generator.rb', line 124 def target_path "app/views/#{plural_scope || :devise}/mailer" end |