diff options
author | Greg Borenstein <greg@mfdz.com> | 2009-01-19 11:44:55 -0800 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2009-01-26 16:26:37 +1300 |
commit | f4bf318db061daa8c6ebb2b700fd15034e031310 (patch) | |
tree | c157d1426b8943cc04dddd957937e2c274a83227 /activesupport | |
parent | 4ef9845aa324679b88e19b8223dd90b774215bc6 (diff) | |
download | rails-f4bf318db061daa8c6ebb2b700fd15034e031310.tar.gz rails-f4bf318db061daa8c6ebb2b700fd15034e031310.tar.bz2 rails-f4bf318db061daa8c6ebb2b700fd15034e031310.zip |
add an inspect method to OrderedHash to make it clear that it is not a species of Array
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#1782 state:committed]
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/ordered_hash.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/ordered_hash.rb b/activesupport/lib/active_support/ordered_hash.rb index 25ea505813..66aab9e562 100644 --- a/activesupport/lib/active_support/ordered_hash.rb +++ b/activesupport/lib/active_support/ordered_hash.rb @@ -92,6 +92,10 @@ module ActiveSupport dup.merge!(other_hash) end + def inspect + "#<OrderedHash #{self.to_hash.inspect}>" + end + private def sync_keys! |