Permalink
Browse files

Dealing with Procs

  • Loading branch information...
inescoelho authored and rosafaria committed Aug 7, 2015
1 parent 52d45f4 commit 42bea8364f443252937d5f488e91852f87bd9766
Showing with 1 addition and 5 deletions.
  1. +1 −5 lib/lotus/mailer/dsl.rb
View
@@ -112,7 +112,6 @@ def templates(value = nil)
# include Lotus::Mailer
#
# from "noreply@example.com"
#
# end
#
# @example With Procs
@@ -147,15 +146,13 @@ def from(value = nil)
# include Lotus::Mailer
#
# to "noreply@example.com"
#
# end
#
# @example With Array of Strings
# class ArrayMailer
# include Lotus::Mailer
#
# to ["noreply1@example.com", "noreply2@example.com"]
#
# end
#
# @example With Procs
@@ -193,14 +190,13 @@ def to(value = nil)
# include Lotus::Mailer
#
# subject "This is the subject"
#
# end
#
# @example With Procs
# class ProcMailer
# include Lotus::Mailer
#
# from = Proc.new { customized_subject }
# subject -> { customized_subject }
#
# def customized_subject
# "This is the subject"

0 comments on commit 42bea83

Please sign in to comment.