Permalink
Browse files

Merge pull request #4959 from ram123naresh/removed_ordered_hash

Replaced OrderedHash with Hash for ruby 1.9 series
  • Loading branch information...
2 parents a8e9f29 + da91a89 commit 39a3058beb3e227596212b342b6dfea267a4fcf1 @vijaydev vijaydev committed Feb 9, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 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 39a3058

Please sign in to comment.