nisetegami 0.5.3 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -69,7 +69,8 @@ module Nisetegami
|
|
69
69
|
|
70
70
|
def collect_responses_and_parts_order_with_required_parts_order(headers)
|
71
71
|
responses, parts_order = collect_responses_and_parts_order_without_required_parts_order(headers)
|
72
|
-
|
72
|
+
parts_order ||= responses.map { |r| r[:content_type] } if @_ar_template
|
73
|
+
[responses, parts_order]
|
73
74
|
end
|
74
75
|
|
75
76
|
end
|
@@ -7,7 +7,7 @@ class Nisetegami::ARTemplateResolver < ActionView::Resolver
|
|
7
7
|
def find_templates(name, prefix, partial, details)
|
8
8
|
Nisetegami::Template.by_mailer(prefix.classify).by_action(name).map do |record|
|
9
9
|
formats = [:text]
|
10
|
-
formats
|
10
|
+
formats << :html unless record.only_text?
|
11
11
|
formats.map do |format|
|
12
12
|
source = record.send("body_#{format}")
|
13
13
|
identifier = "Nisetegami::Template.#{record.id}.#{format}"
|
data/lib/nisetegami/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nisetegami
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-11-
|
13
|
+
date: 2012-11-26 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|