Skip to content

Commit

Permalink
Merge pull request sunspot#56 from huned/master
Browse files Browse the repository at this point in the history
Fixed a deprecation WARNING
  • Loading branch information
nz committed May 24, 2011
2 parents ecd67b1 + 4ea84cb commit 53175c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sunspot_rails/lib/sunspot/rails/tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
# $ rake sunspot:reindex[1000,Post] # reindex only the Post model in
# # batchs of 1000
# $ rake sunspot:reindex[,Post+Author] # reindex Post and Author model
task :reindex, :batch_size, :models, :needs => :environment do |t, args|
task :reindex, [:batch_size, :models] => [:environment] do |t, args|
reindex_options = {:batch_commit => false}
case args[:batch_size]
when 'false'
Expand Down

0 comments on commit 53175c3

Please sign in to comment.