Class: Devise::Generators::MarkerbGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
ViewPathTemplates
Defined in:
lib/generators/devise/views_generator.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#copy_viewsObject



113
114
115
116
117
# File 'lib/generators/devise/views_generator.rb', line 113

def copy_views
  if !options[:views] || options[:views].include?('mailer')
    view_directory :markerb, target_path
  end
end

#target_pathObject



119
120
121
# File 'lib/generators/devise/views_generator.rb', line 119

def target_path
  "app/views/#{plural_scope || :devise}/mailer"
end