lib/alf/relation/instance_methods.rb in alf-0.11.1 vs lib/alf/relation/instance_methods.rb in alf-0.12.0
- old
+ new
@@ -106,9 +106,14 @@
"Alf::Relation[" +
tuples.collect{|t| Tools.to_ruby_literal(t)}.join(', ') + "]"
end
alias :inspect :to_ruby_literal
+ # Returns self
+ def to_relation
+ self
+ end
+
end # module InstanceMethods
include(InstanceMethods)
end # class Relation
end # module Alf