aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/algebra/extensions/hash.rb
blob: 82cd5e11d3372e9fb37a1c84c06055997e17a30a (plain) (blame)
1
2
3
4
5
6
7
class Hash
  def bind(relation)
    inject({}) do |bound, (key, value)|
      bound.merge(key.bind(relation) => value.bind(relation))
    end
  end
end