lib/ransack/adapters/active_record/3.2/context.rb
# Redefine a few things for ActiveRecord 3.2.
Redefine a few things for ActiveRecord 3.2.
Redefine a few things for ActiveRecord 3 . 2 .
def evaluate(search, opts = {})
          viz = Visitor.new
          relation = @object.where(viz.accept(search.base))
          if search.sorts.any?
            relation = relation.except(:order).reorder(viz.accept(search.sorts))
          end
          opts[:distinct] ? relation.uniq : relation
        end
def evaluate ( search , opts = { } ) viz = Visitor . new relation = @object . where ( viz . accept ( search . base ) ) if search . sorts . any? relation = relation . except ( :order ) . reorder ( viz . accept ( search . sorts ) ) end opts [ :distinct ] ? relation . uniq : relation end
Redefine a few things for ActiveRecord 3.2.
Redefine a few things for ActiveRecord 3 . 2 .
search
opts