lib/merb-parts/part_controller.rb in merb-parts-0.9.6 vs lib/merb-parts/part_controller.rb in merb-parts-0.9.7
- old
+ new
@@ -86,10 +86,10 @@
end
# Send any methods that are missing back up to the web controller
# Patched to set partial locals on the web controller
def method_missing(sym, *args, &blk)
- @web_controller.instance_variable_set(:@_merb_partial_locals, @_merb_partial_locals)
+ @web_controller.instance_variable_set(:@_merb_partial_locals, @_merb_partial_locals) if @_merb_partial_locals
@web_controller.send(sym, *args, &blk)
end
end
end