diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-07 14:20:30 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-07 14:20:30 -0800 |
commit | 9a5b5e533600de7421700fd8f1498bfa0ce42a9c (patch) | |
tree | e630c4f53775849898a7b145d0fb0d5e1216cc48 /lib/arel/nodes | |
parent | 89194f5976d09a62f967e550daeda41ac0b9de48 (diff) | |
download | rails-9a5b5e533600de7421700fd8f1498bfa0ce42a9c.tar.gz rails-9a5b5e533600de7421700fd8f1498bfa0ce42a9c.tar.bz2 rails-9a5b5e533600de7421700fd8f1498bfa0ce42a9c.zip |
converting froms to from
Diffstat (limited to 'lib/arel/nodes')
-rw-r--r-- | lib/arel/nodes/select_core.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/arel/nodes/select_core.rb b/lib/arel/nodes/select_core.rb index acc6bb9815..e2293f68a2 100644 --- a/lib/arel/nodes/select_core.rb +++ b/lib/arel/nodes/select_core.rb @@ -1,11 +1,14 @@ module Arel module Nodes class SelectCore < Arel::Nodes::Node - attr_accessor :froms, :projections, :wheres, :groups + attr_accessor :from, :projections, :wheres, :groups attr_accessor :having + alias :froms= :from= + alias :froms :from + def initialize - @froms = nil + @from = nil @projections = [] @wheres = [] @groups = [] @@ -14,7 +17,7 @@ module Arel def initialize_copy other super - @froms = @froms.clone if @froms + @from = @from.clone if @from @projections = @projections.clone @wheres = @wheres.clone @group = @groups.clone |