lib/mustache_render/mustache/context.rb in mustache_render-0.0.3 vs lib/mustache_render/mustache/context.rb in mustache_render-0.0.4
- old
+ new
@@ -1,5 +1,6 @@
+# -*- encoding : utf-8 -*-
module MustacheRender
class Mustache
# A ContextMiss is raised whenever a tag's target can not be found
# in the current context if `Mustache#raise_on_context_miss?` is
# set to true.
@@ -101,10 +102,10 @@
if value != :__missing
return value
end
end
- if default == :__raise || mustache_in_stack.raise_on_context_miss?
+ if default == :__raise || MustacheRender.config.raise_on_context_miss?
raise ContextMiss.new("Can't find #{name} in #{@stack.inspect}")
else
default
end
end