algoliasearch-rails 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/algoliasearch-rails.gemspec +1 -1
- data/lib/algoliasearch-rails.rb +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a27f4d775cf46b7172cc94edef1b5bfa617fb2d
|
4
|
+
data.tar.gz: 84e4c3bd257180f153f00ab062179a89d3b02d6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 709129599d7506d0cd89b9d2dc2b43bbebfabe808ffc98562e3d90d113f9d0df7a8691d10c06916b5e50b1a17fe32da07d89c2f2edcefc688ee14c84a08c3148
|
7
|
+
data.tar.gz: 5b367d3784bd64d623a0ec0338c475e601f4f022ecc6fa7255f322327c16fa706c3d93c920b6c3ab416e9d4012192fa87c1d62a0cdff40ad24ece43d82f8bbb8
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.2
|
data/algoliasearch-rails.gemspec
CHANGED
data/lib/algoliasearch-rails.rb
CHANGED
@@ -139,7 +139,8 @@ module AlgoliaSearch
|
|
139
139
|
|
140
140
|
def init
|
141
141
|
@index ||= Algolia::Index.new(@options[:index_name] || model_name)
|
142
|
-
@
|
142
|
+
settings = @index_options.to_settings
|
143
|
+
@index.set_settings(settings) if !settings.empty?
|
143
144
|
end
|
144
145
|
|
145
146
|
private
|
@@ -176,7 +177,7 @@ module AlgoliaSearch
|
|
176
177
|
end
|
177
178
|
|
178
179
|
def perform_index_tasks
|
179
|
-
return if !@auto_indexing
|
180
|
+
return if !@auto_indexing || (respond_to?(:changed?) && !changed?)
|
180
181
|
index!
|
181
182
|
remove_instance_variable(:@auto_indexing) if instance_variable_defined?(:@auto_indexing)
|
182
183
|
remove_instance_variable(:@synchronous) if instance_variable_defined?(:@synchronous)
|