From 659965df631d8b46c6a27efdc60f43c7cbdae8c0 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sun, 15 Jan 2017 04:53:07 -0800 Subject: [PATCH] Updated readme [skip ci] --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7167b32..a2926ad 100644 --- a/README.md +++ b/README.md @@ -1185,7 +1185,7 @@ class ReindexConversions def self.perform(model) class_name = model.name recently_converted_ids = - Searchjoy::Search.where("convertable_type = ? AND converted_at > ?", class_name, 1.days.ago) + Searchjoy::Search.where("convertable_type = ? AND converted_at > ?", class_name, 1.day.ago) .pluck(:convertable_id).sort recently_converted_ids.in_groups_of(1000, false) do |ids| @@ -1205,7 +1205,7 @@ class ReindexConversions end # partial reindex - class_name.constantize.where(id: ids).reindex(:search_conversions) + model.where(id: ids).reindex(:search_conversions) end end end -- libgit2 0.21.0