aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-07-20 16:51:25 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-07-20 16:51:25 -0700
commit2f6ae7592ff20c8ce02113f3d349b67911103023 (patch)
tree9354c721f0436892bf950804feae5d825bf3262e /lib
parent108a4531fdb63c33e77fc98145a4520acb1af980 (diff)
downloadrails-2f6ae7592ff20c8ce02113f3d349b67911103023.tar.gz
rails-2f6ae7592ff20c8ce02113f3d349b67911103023.tar.bz2
rails-2f6ae7592ff20c8ce02113f3d349b67911103023.zip
refactor to use inheritence
Diffstat (limited to 'lib')
-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