Skip to content

Commit

Permalink
Replaced OrderedHash with Hash for ruby 1.9 series
Browse files Browse the repository at this point in the history
  • Loading branch information
ram123naresh committed Feb 9, 2012
1 parent d1abb8b commit da91a89
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions 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
Expand All @@ -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*(.*)$}
Expand Down

0 comments on commit da91a89

Please sign in to comment.