sunspot_rails 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sunspot/rails/tasks.rb +1 -1
- data/lib/sunspot/rails/version.rb +1 -1
- metadata +4 -4
data/lib/sunspot/rails/tasks.rb
CHANGED
@@ -28,7 +28,7 @@ namespace :sunspot do
|
|
28
28
|
task :reindex => :environment do
|
29
29
|
all_files = Dir.glob(File.join(RAILS_ROOT, 'app', 'models', '*.rb'))
|
30
30
|
all_models = all_files.map { |path| File.basename(path, '.rb').camelize.constantize }
|
31
|
-
sunspot_models = all_models.select { |m| m < ActiveRecord::Base and m.
|
31
|
+
sunspot_models = all_models.select { |m| m < ActiveRecord::Base and m.searchable? }
|
32
32
|
|
33
33
|
sunspot_models.each do |model|
|
34
34
|
model.solr_reindex :batch_commit => false
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 1.0.
|
8
|
+
- 3
|
9
|
+
version: 1.0.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Mat Brown
|
@@ -35,8 +35,8 @@ dependencies:
|
|
35
35
|
segments:
|
36
36
|
- 1
|
37
37
|
- 0
|
38
|
-
-
|
39
|
-
version: 1.0.
|
38
|
+
- 3
|
39
|
+
version: 1.0.3
|
40
40
|
type: :runtime
|
41
41
|
version_requirements: *id001
|
42
42
|
- !ruby/object:Gem::Dependency
|