Skip to content

Commit

Permalink
Changed id to key to stay consistent with our own table.
Browse files Browse the repository at this point in the history
  • Loading branch information
rickyrobinson committed Jan 21, 2012
1 parent bb099e5 commit effbf65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/yelp.rb
Expand Up @@ -69,7 +69,7 @@ def extract_categories items, parent = nil
if item.name == "li"
key = item.content.match(/\((.*)\)/)[1]
name = item.content.match(/^(.*) \(/)[1]
cats << {:id => key, :name => name, :parent => parent}
cats << {:key => key, :name => name, :parent => parent}
prev = key
elsif item.name == "ul"
subcats = self.extract_categories item.children, prev
Expand Down

0 comments on commit effbf65

Please sign in to comment.