aboutsummaryrefslogblamecommitdiffstats
path: root/lib/arel/algebra/core_extensions/hash.rb
blob: c64225f68536e3fb7d5ffbb502c605a62842316d (plain) (tree)
1
2
3
4
5
6
7
8
9





                                                               
       
 
                             
     
   
module Arel
  module HashExtensions
    def bind(relation)
      inject({}) do |bound, (key, value)|
        bound.merge(key.bind(relation) => value.bind(relation))
      end
    end

    Hash.send(:include, self)
  end
end