lib/searchlogic/named_scopes/conditions.rb in joost-searchlogic-2.1.5.3 vs lib/searchlogic/named_scopes/conditions.rb in joost-searchlogic-2.1.7.1
- old
+ new
@@ -93,9 +93,14 @@
end
end
# Is the name of the method a valid condition that can be dynamically created?
def condition?(name)
+ local_condition?(name)
+ end
+
+ # Is the condition for a local column, not an association
+ def local_condition?(name)
primary_condition?(name) || alias_condition?(name)
end
# Is the name of the method a valid condition that can be dynamically created,
# AND is it a primary condition (not an alias). "greater_than" not "gt".