Class: Bently::ActionMailer
- Inherits:
-
RailsRecipe
- Object
- Recipe
- RubyRecipe
- RailsRecipe
- Bently::ActionMailer
- Defined in:
- lib/bently/recipe/action-mailer.rb
Constant Summary
Constants inherited from RubyRecipe
Instance Method Summary collapse
-
#initialize ⇒ ActionMailer
constructor
A new instance of ActionMailer.
Methods inherited from RailsRecipe
Methods inherited from RubyRecipe
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
#initialize ⇒ ActionMailer
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 |