aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/algebra/core_extensions/hash.rb
blob: 4b36a3e2bcc43c71ea9baffb4f7e6c3952328899 (plain) (blame)
1
2
3
4
5
6
7
class Hash
  def bind(relation)
    Hash[map { |key, value|
      [key.bind(relation), value.bind(relation)]
    }]
  end
end