lib/piglet/relation/union.rb in piglet-0.1.2 vs lib/piglet/relation/union.rb in piglet-0.2.0
- old
+ new
@@ -2,10 +2,10 @@
module Relation
class Union # :nodoc:
include Relation
def initialize(*relations)
- @sources = relations
+ @sources = [relations].flatten
end
def to_s
"UNION #{source_aliases.join(', ')}"
end
\ No newline at end of file