algoliasearch-rails 1.19.0 → 1.19.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf08d07243a3d74246859ea6ffc628167493e478
4
- data.tar.gz: b6841af0c6e1130d63d10d4898340b689c9cc17a
3
+ metadata.gz: 23f4ced41b37b645e2cce5d67f805d42850e029a
4
+ data.tar.gz: a796b183866ab727b38d31be8235a3a8ff3883bb
5
5
  SHA512:
6
- metadata.gz: 7914bb0f6903704f247cf14e935551c47191f8e01dc4a1060c02a2a7246191a2def4867a7972565bd627697714d0cc5395f21b457e308c4cbd0e07bf2854c598
7
- data.tar.gz: 4d258c1e6f77bd4a06602e77eaaaf68882d05bd515c78e0c1e7cc0b118f4e15d06be01ff8fbf0c1d7e071d94fe1fe3353dac307958d2579da3bc986cc30a4179
6
+ metadata.gz: b31dbca7392ef79fa82ca7f949318e5365543797fa612cc0dad7cc0e453f57dc412e13c25acc1b24b7f0140944576bbe5de60e5d6bcc59f429d29a00e28db17c
7
+ data.tar.gz: b0c7c3b271489fc8a10caf5a460e3bb236caa5992b98fe422581f219b07881386c126fcd3b8b1980dee556d34fe1e59a72da5a5e2a9c8ada8b0a9bee4662a641
data/ChangeLog CHANGED
@@ -1,5 +1,9 @@
1
1
  CHANGELOG
2
2
 
3
+ 2017-03-13 1.19.1
4
+
5
+ * Make sure get_model_classes is not ActiveRecord compliant only
6
+
3
7
  2017-03-13 1.19.0
4
8
 
5
9
  * Rewrote the algoliasearch:reindex rake task to better detect models to reindex
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.19.0
1
+ 1.19.1
@@ -2,9 +2,8 @@ module AlgoliaSearch
2
2
  module Utilities
3
3
  class << self
4
4
  def get_model_classes
5
- Rails.application.eager_load! # Ensure all models are loaded (not necessary in production when cache_classes is true).
6
-
7
- ActiveRecord::Base.descendants.select{ |model| model.respond_to?(:algolia_reindex) }
5
+ Rails.application.eager_load! if Rails.application # Ensure all models are loaded (not necessary in production when cache_classes is true).
6
+ AlgoliaSearch.instance_variable_get :@included_in
8
7
  end
9
8
 
10
9
  def clear_all_indexes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: algoliasearch-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.19.0
4
+ version: 1.19.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Algolia