lib/sanford/template_engine.rb in sanford-0.16.0 vs lib/sanford/template_engine.rb in sanford-0.16.1
- old
+ new
@@ -15,9 +15,18 @@
def render(path, service_handler, locals)
raise NotImplementedError
end
+ def ==(other_engine)
+ if other_engine.kind_of?(TemplateEngine)
+ self.source_path == other_engine.source_path &&
+ self.opts == other_engine.opts
+ else
+ super
+ end
+ end
+
end
class NullTemplateEngine < TemplateEngine
def render(path, service_handler, locals)