aboutsummaryrefslogtreecommitdiffstats
path: root/guides/rails_guides/indexer.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2016-08-06 19:39:28 +0200
committerXavier Noria <fxn@hashref.com>2016-08-06 19:39:28 +0200
commit1607ee299d15c133b2b63dcfc840eddfba7e525b (patch)
treef1d045de895e4488c95553262a991e62d89756e3 /guides/rails_guides/indexer.rb
parent477568ee33bee0dc5e57b9df624142296e3951a4 (diff)
downloadrails-1607ee299d15c133b2b63dcfc840eddfba7e525b.tar.gz
rails-1607ee299d15c133b2b63dcfc840eddfba7e525b.tar.bz2
rails-1607ee299d15c133b2b63dcfc840eddfba7e525b.zip
modernizes hash syntax in guides
Diffstat (limited to 'guides/rails_guides/indexer.rb')
-rw-r--r--guides/rails_guides/indexer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/rails_guides/indexer.rb b/guides/rails_guides/indexer.rb
index be1c3fab80..1550ceedac 100644
--- a/guides/rails_guides/indexer.rb
+++ b/guides/rails_guides/indexer.rb
@@ -39,8 +39,8 @@ module RailsGuides
raise "Parsing Fail" unless @result.sub!(matched, "h#{level}(#{idx}). #{index} #{title}")
key = {
- :title => title,
- :id => idx
+ title: title,
+ id: idx
}
# Recurse
counters << 1