sinatra_mailer 0.0.1.1 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sinatra_mailer/mailer.rb +4 -7
- data/lib/sinatra_mailer/version.rb +1 -1
- metadata +1 -1
@@ -36,12 +36,12 @@ module Sinatra
|
|
36
36
|
module Mailer
|
37
37
|
class << self
|
38
38
|
attr_accessor :config, :delivery_method
|
39
|
-
|
40
|
-
def email(mail_options={})
|
41
|
-
Email.new(mail_options).deliver!
|
42
|
-
end
|
43
39
|
end
|
44
40
|
|
41
|
+
def email(mail_options={})
|
42
|
+
Email.new(mail_options).deliver!
|
43
|
+
end
|
44
|
+
|
45
45
|
class Email
|
46
46
|
attr_accessor :mail, :config
|
47
47
|
|
@@ -94,9 +94,6 @@ module Sinatra
|
|
94
94
|
o[:rawhtml] = o.delete(:html)
|
95
95
|
m = MailFactory.new()
|
96
96
|
o.each { |k,v| m.send "#{k}=", v }
|
97
|
-
puts "++++"
|
98
|
-
puts "m: #{m.inspect}"
|
99
|
-
puts "++++"
|
100
97
|
@mail = m
|
101
98
|
end
|
102
99
|
|