lib/cloud_sesame/query/dsl/block_methods.rb in CloudSesame-0.2.3 vs lib/cloud_sesame/query/dsl/block_methods.rb in CloudSesame-0.2.4

- old
+ new

@@ -29,11 +29,15 @@ node = klass.new dsl_context, options, &block if block_given? dsl_scope << node dsl_return node else - AST::BlockChainingRelation.new(dsl_scope, dsl_return, node) + return_chaining_relation(node) end + end + + def return_chaining_relation(node) + AST::BlockChainingRelation.new(dsl_scope, dsl_return, node) end end end end