Class: Bently::ActionMailer

Inherits:
RailsRecipe show all
Defined in:
lib/bently/recipe/action-mailer.rb

Constant Summary

Constants inherited from RubyRecipe

RubyRecipe::GEMFILE

Instance Method Summary collapse

Methods inherited from RailsRecipe

#generate, #migrate

Methods inherited from RubyRecipe

#bundle, #gem, #gem_group

Methods inherited from Recipe

#append, breakdown, category, #code, #create, description, homepage, #insert, #modify, #operate, #operations, #prepend, #remove, #requirement, #run, #say, title, #todo, #usage, version, #warn

Constructor Details

#initializeActionMailer

Returns a new instance of ActionMailer.



7
8
9
10
11
12
# File 'lib/bently/recipe/action-mailer.rb', line 7

def initialize
  generate 'mailer UserMailer'
  insert 'app/mailers/user_mailer.rb', welcome_email_method, :after => /^.*default.*$/
  create './app/views/user_mailer/welcome_email.html.erb', template('welcome_email.html.erb')
  create './app/views/user_mailer/welcome_email.text.erb', template('welcome_email.text.erb')
end