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

Methods included from ViewPathTemplates

#view_directory

Instance Method Details

#copy_viewsObject



107
108
109
110
111
# File 'lib/generators/devise/views_generator.rb', line 107

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

#target_pathObject



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

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