Skip to content
Browse files

enable paths on source iterator because it won't receive the message …

…when the main pipeline is built.
  • Loading branch information...
1 parent d7addca commit f60364fecbf5c7095e20c098ef6abf7fea5ec1e1 @pangloss committed Oct 1, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/pacer/core/route.rb
View
4 lib/pacer/core/route.rb
@@ -308,7 +308,9 @@ def source=(source)
# @return [java.util.Iterator]
def source_iterator
if @source
- iterator_from_source(@source)
+ iter = iterator_from_source(@source)
+ iter.enablePath(true) if iter.respond_to? :enablePath
+ iter
elsif @back
@back.send(:source_iterator)
end

0 comments on commit f60364f

Please sign in to comment.
Something went wrong with that request. Please try again.