aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/algebra/extensions/object.rb
blob: d626407dcb801c0a6c67e5011a444d0491601615 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class Object
  def bind(relation)
    Arel::Value.new(self, relation)
  end

  def find_correlate_in(relation)
    bind(relation)
  end

  def metaclass
    class << self
      self
    end
  end
end