mack-notifier 0.8.0 → 0.8.0.1
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.
|
@@ -154,7 +154,7 @@ module Mack # :nodoc:
|
|
|
154
154
|
def build_template(format)
|
|
155
155
|
begin
|
|
156
156
|
vt = Mack::Rendering::ViewTemplate.new(:notifier, self.class.to_s.underscore, {:locals => {:notifier => self}, :format => format.to_s})
|
|
157
|
-
return vt.
|
|
157
|
+
return vt._compile_and_render
|
|
158
158
|
rescue Mack::Errors::ResourceNotFound => e
|
|
159
159
|
end
|
|
160
160
|
return nil
|
|
@@ -4,7 +4,7 @@ module Mack
|
|
|
4
4
|
class Notifier < Mack::Rendering::Type::FileBase # :nodoc:
|
|
5
5
|
|
|
6
6
|
def render
|
|
7
|
-
x_file = Mack::Paths.notifier_templates(self.
|
|
7
|
+
x_file = Mack::Paths.notifier_templates(self._render_value, self._options[:format])
|
|
8
8
|
render_file(x_file)
|
|
9
9
|
end
|
|
10
10
|
|