Class: HelloWorldDbMailer

Inherits:
DbMailerRails::Base show all
Defined in:
lib/generators/db_mailer_rails/templates/hello_world_db_mailer.rb

Instance Attribute Summary

Attributes inherited from DbMailerRails::Base

#object

Instance Method Summary collapse

Methods inherited from DbMailerRails::Base

#build, #mail_attachments

Instance Method Details

#fieldsObject



4
5
6
7
8
9
10
# File 'lib/generators/db_mailer_rails/templates/hello_world_db_mailer.rb', line 4

def fields
  super.merge(
    user_name: 'User test name',
    user_email: 'User test e-mail address',
    app_name: 'Application name'
  )
end

#user_emailObject



16
17
18
# File 'lib/generators/db_mailer_rails/templates/hello_world_db_mailer.rb', line 16

def user_email
  '[email protected]'
end

#user_nameObject



12
13
14
# File 'lib/generators/db_mailer_rails/templates/hello_world_db_mailer.rb', line 12

def user_name
  'User'
end