aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/relations/nil.rb
blob: 714b11cc2af61ae41d7a41d930b1175046feb9e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
module Arel
  class Nil < Relation
    def table_sql(formatter = nil); '' end
    def relation_for(attribute); nil end
    def name; '' end

    def ==(other)
      self.class == other.class
    end
  end
end