aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/algebra/core_extensions/object.rb
blob: 2dc5ea267759fd48649d165f09509e07be8305ce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
module Arel
  module ObjectExtensions
    def bind(relation)
      Arel::Value.new(self, relation)
    end

    def find_correlate_in(relation)
      bind(relation)
    end

    Object.send(:include, self)
  end
end