Method: Arel::SelectManager#distinct

Defined in:
activerecord/lib/arel/select_manager.rb

#distinct(value = true) ⇒ Object



154
155
156
157
158
159
160
161
# File 'activerecord/lib/arel/select_manager.rb', line 154

def distinct(value = true)
  if value
    @ctx.set_quantifier = Arel::Nodes::Distinct.new
  else
    @ctx.set_quantifier = nil
  end
  self
end