aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/arel/algebra/core_extensions/hash.rb12
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/arel/algebra/core_extensions/hash.rb b/lib/arel/algebra/core_extensions/hash.rb
index c64225f685..82cd5e11d3 100644
--- a/lib/arel/algebra/core_extensions/hash.rb
+++ b/lib/arel/algebra/core_extensions/hash.rb
@@ -1,11 +1,7 @@
-module Arel
- module HashExtensions
- def bind(relation)
- inject({}) do |bound, (key, value)|
- bound.merge(key.bind(relation) => value.bind(relation))
- end
+class Hash
+ def bind(relation)
+ inject({}) do |bound, (key, value)|
+ bound.merge(key.bind(relation) => value.bind(relation))
end
-
- Hash.send(:include, self)
end
end