diff options
author | Bryan Helmkamp <bryan@brynary.com> | 2009-05-17 16:48:04 -0400 |
---|---|---|
committer | Bryan Helmkamp <bryan@brynary.com> | 2009-05-17 16:48:04 -0400 |
commit | 605973614add20b504489e6fac086565717db14b (patch) | |
tree | 795cec47c0e5722dccbfb9c4467827e1fac8bf89 /lib/arel | |
parent | 16707d1b96365ab569e7a5e47a3d694c14d4132c (diff) | |
download | rails-605973614add20b504489e6fac086565717db14b.tar.gz rails-605973614add20b504489e6fac086565717db14b.tar.bz2 rails-605973614add20b504489e6fac086565717db14b.zip |
Removing unused array extensions
Diffstat (limited to 'lib/arel')
-rw-r--r-- | lib/arel/algebra/extensions.rb | 1 | ||||
-rw-r--r-- | lib/arel/algebra/extensions/array.rb | 17 |
2 files changed, 0 insertions, 18 deletions
diff --git a/lib/arel/algebra/extensions.rb b/lib/arel/algebra/extensions.rb index 694dc60a2a..bc8edd3274 100644 --- a/lib/arel/algebra/extensions.rb +++ b/lib/arel/algebra/extensions.rb @@ -1,5 +1,4 @@ require 'arel/algebra/extensions/object' require 'arel/algebra/extensions/class' -require 'arel/algebra/extensions/array' require 'arel/algebra/extensions/symbol' require 'arel/algebra/extensions/hash' diff --git a/lib/arel/algebra/extensions/array.rb b/lib/arel/algebra/extensions/array.rb deleted file mode 100644 index e7e44ae909..0000000000 --- a/lib/arel/algebra/extensions/array.rb +++ /dev/null @@ -1,17 +0,0 @@ -module Arel - module ArrayExtensions - def to_hash - Hash[*flatten] - end - - def group_by - inject({}) do |groups, element| - (groups[yield(element)] ||= []) << element - groups - end - end - - Array.send(:include, self) - end -end - |