diff options
author | Uddhava <ramnaresh1983@gmail.com> | 2012-02-09 16:17:34 +0530 |
---|---|---|
committer | Uddhava <ramnaresh1983@gmail.com> | 2012-02-09 16:17:34 +0530 |
commit | da91a8959bec32072577d66d2524f91755d5d167 (patch) | |
tree | 5cd2c337ddd963ee989d69b1afd8626086c35a83 /railties/guides/rails_guides | |
parent | d1abb8ba64238bbcf748fc3bab0e8ee07df37fc1 (diff) | |
download | rails-da91a8959bec32072577d66d2524f91755d5d167.tar.gz rails-da91a8959bec32072577d66d2524f91755d5d167.tar.bz2 rails-da91a8959bec32072577d66d2524f91755d5d167.zip |
Replaced OrderedHash with Hash for ruby 1.9 series
Diffstat (limited to 'railties/guides/rails_guides')
-rw-r--r-- | railties/guides/rails_guides/indexer.rb | 3 |
1 files changed, 1 insertions, 2 deletions
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*(.*)$} |