lib/elastic/nodes/and.rb in elastic-rails-0.5.0 vs lib/elastic/nodes/and.rb in elastic-rails-0.6.0

- old
+ new

@@ -25,11 +25,11 @@ new_children = @children.map(&:simplify) return new_children.first if new_children.count == 1 prepare_clone(super, new_children) end - def render - { operation => @children.map(&:render) } + def render(_options = {}) + { operation => @children.map { |c| c.render(_options) } } end private def prepare_clone(_clone, _children)