aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/arel/algebra/relations/operations/from.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/arel/algebra/relations/operations/from.rb b/lib/arel/algebra/relations/operations/from.rb
index 6bfd68dfc9..fbddb4234f 100644
--- a/lib/arel/algebra/relations/operations/from.rb
+++ b/lib/arel/algebra/relations/operations/from.rb
@@ -1,6 +1,10 @@
module Arel
class From < Compound
- attributes :relation, :sources
- deriving :initialize, :==
+ attr_reader :sources
+
+ def initialize relation, sources
+ super(relation)
+ @sources = sources
+ end
end
end