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

#plural_scope, #view_directory

Instance Method Details

#copy_viewsObject



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

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

#target_pathObject



124
125
126
# File 'lib/generators/devise/views_generator.rb', line 124

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