Class: DeviseTokenAuth::InstallViewsGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/devise_token_auth/install_views_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_mailer_templatesObject



7
8
9
10
11
12
13
14
15
16
# File 'lib/generators/devise_token_auth/install_views_generator.rb', line 7

def copy_mailer_templates
  copy_file(
    'confirmation_instructions.html.erb',
    'app/views/devise/mailer/confirmation_instructions.html.erb'
  )
  copy_file(
    'reset_password_instructions.html.erb',
    'app/views/devise/mailer/reset_password_instructions.html.erb'
  )
end