searchlogic 2.3.15 → 2.3.16
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/searchlogic/named_scopes/association_conditions.rb +1 -1
- data/searchlogic.gemspec +1 -1
- metadata +1 -1
data/VERSION.yml
CHANGED
@@ -91,7 +91,7 @@ module Searchlogic
|
|
91
91
|
def prepare_named_scope_options(options, association)
|
92
92
|
options.delete(:readonly) # AR likes to set :readonly to true when using the :joins option, we don't want that
|
93
93
|
|
94
|
-
options[:conditions] = sanitize_sql_for_conditions(options[:conditions]) if options[:conditions].is_a?(Hash)
|
94
|
+
options[:conditions] = association.klass.sanitize_sql_for_conditions(options[:conditions]) if options[:conditions].is_a?(Hash)
|
95
95
|
|
96
96
|
if options[:joins].is_a?(String) || array_of_strings?(options[:joins])
|
97
97
|
options[:joins] = [inner_joins(association.name), options[:joins]].flatten
|
data/searchlogic.gemspec
CHANGED