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

    def find_correlate_in(relation)
      bind(relation)
    end

    def let
      yield(self)
    end

    Object.send(:include, self)
  end
end