1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Include Predications in Grouping

Also, removed unused ordering.rb file, since it is identical
to the one being created in unary.rb already, and isn't
required anywhere.
This commit is contained in:
Ernie Miller 2012-05-19 11:10:47 -04:00
parent 19c6eeb7b0
commit c78227d9b2
5 changed files with 21 additions and 7 deletions

View file

@ -13,6 +13,7 @@ require 'arel/nodes/false'
# unary
require 'arel/nodes/unary'
require 'arel/nodes/grouping'
require 'arel/nodes/ascending'
require 'arel/nodes/descending'
require 'arel/nodes/unqualified_column'

View file

@ -0,0 +1,7 @@
module Arel
module Nodes
class Grouping < Unary
include Arel::Predications
end
end
end

View file

@ -1,6 +0,0 @@
module Arel
module Nodes
class Ordering < Unary
end
end
end

View file

@ -12,7 +12,6 @@ module Arel
%w{
Bin
Group
Grouping
Having
Limit
Not

View file

@ -0,0 +1,13 @@
require 'helper'
module Arel
module Nodes
describe 'Grouping' do
it 'should create Equality nodes' do
grouping = Grouping.new('foo')
grouping.eq('foo').to_sql.must_be_like %q{('foo') = 'foo'}
end
end
end
end