Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update plugin

  • Loading branch information...
commit 7afc49e341fa8da04e615691391ca5051f250232 1 parent f148969
@fizx fizx authored
View
4 vendor/plugins/acts_as_solr/lib/instance_methods.rb
@@ -24,6 +24,10 @@ def method_missing_with_solr_magic(method, *a, &b)
# saves to the Solr index
def solr_save
+ if self.class.respond_to?(:acts_as_solr_needs_reload?) && self.class.acts_as_solr_needs_reload?
+ self.class.acts_as_solr
+ end
+
return true if indexing_disabled?
if evaluate_condition(:if, self)
logger.debug "solr_save: #{self.class.name} : #{record_id(self)}"
View
6 vendor/plugins/acts_as_solr/lib/parser_methods.rb
@@ -3,11 +3,7 @@ module ParserMethods
protected
# Method used by mostly all the ClassMethods when doing a search
- def parse_query(query=nil, options={}, models=nil)
- if respond_to?(:acts_as_solr_needs_reload?) && acts_as_solr_needs_reload?
- acts_as_solr
- end
-
+ def parse_query(query=nil, options={}, models=nil)
valid_options = [:offset, :limit, :facets, :models, :results_format, :order, :scores, :operator, :include, :lazy, :highlight]
query_options = {}
Please sign in to comment.
Something went wrong with that request. Please try again.