From 697f4851b8bc4eb539b3e565e8b6349cafed8aaa Mon Sep 17 00:00:00 2001 From: "James A. Rosen" Date: Wed, 20 Oct 2010 08:01:02 -0700 Subject: OrderedHash#select now preserves order [#5843 state:resolved] Signed-off-by: Santiago Pastorino --- activesupport/lib/active_support/ordered_hash.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'activesupport/lib/active_support/ordered_hash.rb') 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 -- cgit v1.2.3