From da91a8959bec32072577d66d2524f91755d5d167 Mon Sep 17 00:00:00 2001 From: Uddhava Date: Thu, 9 Feb 2012 16:17:34 +0530 Subject: Replaced OrderedHash with Hash for ruby 1.9 series --- railties/guides/rails_guides/indexer.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'railties/guides/rails_guides') diff --git a/railties/guides/rails_guides/indexer.rb b/railties/guides/rails_guides/indexer.rb index fb46491817..89fbccbb1d 100644 --- a/railties/guides/rails_guides/indexer.rb +++ b/railties/guides/rails_guides/indexer.rb @@ -1,5 +1,4 @@ require 'active_support/core_ext/object/blank' -require 'active_support/ordered_hash' require 'active_support/core_ext/string/inflections' module RailsGuides @@ -21,7 +20,7 @@ module RailsGuides def process(string, current_level=3, counters=[1]) s = StringScanner.new(string) - level_hash = ActiveSupport::OrderedHash.new + level_hash = {} while !s.eos? re = %r{^h(\d)(?:\((#.*?)\))?\s*\.\s*(.*)$} -- cgit v1.2.3