sunspot_rails 1.0.2 → 1.0.3

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.
@@ -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.solr_searchable? }
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
@@ -1,5 +1,5 @@
1
1
  module Sunspot
2
2
  module Rails
3
- VERSION = '1.0.2'
3
+ VERSION = '1.0.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 2
9
- version: 1.0.2
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
- - 2
39
- version: 1.0.2
38
+ - 3
39
+ version: 1.0.3
40
40
  type: :runtime
41
41
  version_requirements: *id001
42
42
  - !ruby/object:Gem::Dependency