Permalink
Browse files

Replaced OrderedHash with Hash for ruby 1.9 series

  • Loading branch information...
1 parent d1abb8b commit da91a8959bec32072577d66d2524f91755d5d167 @ram123naresh ram123naresh committed Feb 9, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 railties/guides/rails_guides/indexer.rb
View
3 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 @@ def index
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*(.*)$}

0 comments on commit da91a89

Please sign in to comment.