pose 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/pose/version.rb +1 -1
- data/lib/tasks/pose_tasks.rake +2 -2
- metadata +1 -1
data/lib/pose/version.rb
CHANGED
data/lib/tasks/pose_tasks.rake
CHANGED
|
@@ -27,7 +27,7 @@ namespace :pose do
|
|
|
27
27
|
|
|
28
28
|
desc "Deletes and recreates the search index for all instances of the given class."
|
|
29
29
|
task :reindex_all, [:class_name] => [:environment] do |t, args|
|
|
30
|
-
clazz =
|
|
30
|
+
clazz = args.class_name.constantize
|
|
31
31
|
progress_bar = ProgressBar.new " reindexing", clazz.count
|
|
32
32
|
clazz.find_each do |instance|
|
|
33
33
|
instance.update_pose_words
|
|
@@ -35,6 +35,6 @@ namespace :pose do
|
|
|
35
35
|
end
|
|
36
36
|
progress_bar.finish
|
|
37
37
|
end
|
|
38
|
-
|
|
38
|
+
|
|
39
39
|
end
|
|
40
40
|
end
|