Skip to content

Commit

Permalink
using updated name for variable definition
Browse files Browse the repository at this point in the history
  • Loading branch information
JackDanger committed Mar 30, 2011
1 parent fe70b43 commit 50f148c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.rdoc
Expand Up @@ -60,7 +60,7 @@ in the IndexTank Dashboard

# to pass in a list of variables with your document,
# supply a hash with the variable integers as keys:
index_variables do |topic|
variables do |topic|
{
0 => topic.popularity, # these will be available in your queries
1 => topic.id # as doc.var[0] and doc.var[1]
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Expand Up @@ -33,7 +33,7 @@ def initialize(attrs = {})
tankit 'people' do
indexes :name
indexes :last_name
index_variables do
variables do
{0 => 1.0,
1 => 20.0,
2 => 300.0}
Expand Down

0 comments on commit 50f148c

Please sign in to comment.