Sha256: b6353f462560aba5e5bae5190c1cf72b1424b5b81ae269b067a86b9d446078cb

Contents?: true

Size: 224 Bytes

Versions: 10

Compression:

Stored size: 224 Bytes

Contents

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

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
arel-compat-0.4.0 lib/arel/algebra/core_extensions/hash.rb
arel-0.4.0 lib/arel/algebra/core_extensions/hash.rb
arel-0.3.3 lib/arel/algebra/core_extensions/hash.rb
arel-0.3.2 lib/arel/algebra/core_extensions/hash.rb
arel-0.3.1 lib/arel/algebra/core_extensions/hash.rb
arel-0.3.0 lib/arel/algebra/core_extensions/hash.rb
arel-0.2.1 lib/arel/algebra/core_extensions/hash.rb
arel-0.2.0 lib/arel/algebra/core_extensions/hash.rb
arel-0.2.pre lib/arel/algebra/core_extensions/hash.rb
arel-0.1.2 lib/arel/algebra/core_extensions/hash.rb