diff options
author | James A. Rosen <james@zendesk.com> | 2010-10-20 08:01:02 -0700 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-11-07 17:27:07 -0200 |
commit | 697f4851b8bc4eb539b3e565e8b6349cafed8aaa (patch) | |
tree | eb3b9690c8d3e47de088f47a90974f5a7e85af33 /activesupport/lib | |
parent | 990f52ebd78df77d73a2187751c6e1bb6d4b6033 (diff) | |
download | rails-697f4851b8bc4eb539b3e565e8b6349cafed8aaa.tar.gz rails-697f4851b8bc4eb539b3e565e8b6349cafed8aaa.tar.bz2 rails-697f4851b8bc4eb539b3e565e8b6349cafed8aaa.zip |
OrderedHash#select now preserves order [#5843 state:resolved]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/ordered_hash.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/ordered_hash.rb b/activesupport/lib/active_support/ordered_hash.rb index 7f148dc853..8e157d3af4 100644 --- a/activesupport/lib/active_support/ordered_hash.rb +++ b/activesupport/lib/active_support/ordered_hash.rb @@ -137,6 +137,8 @@ module ActiveSupport alias_method :each_pair, :each + alias_method :select, :find_all + def clear super @keys.clear |