lib/thinking_sphinx/attribute.rb in warp-thinking-sphinx-1.3.11 vs lib/thinking_sphinx/attribute.rb in warp-thinking-sphinx-1.3.13

- old
+ new

@@ -176,10 +176,14 @@ end def live_value(instance) object = instance column = @columns.first - column.__stack.each { |method| object = object.send(method) } + column.__stack.each { |method| + object = object.send(method) + return sphinx_value(nil) if object.nil? + } + sphinx_value object.send(column.__name) end def all_ints? all_of_type?(:integer)