lib/searchlogic/condition/base.rb in searchlogic-1.5.6 vs lib/searchlogic/condition/base.rb in searchlogic-1.5.7

- old
+ new

@@ -5,11 +5,11 @@ # The base class for creating a condition. Your custom conditions should extend this class. # See Searchlogic::Conditions::Base.register_condition on how to write your own condition. class Base include Shared::Utilities - attr_accessor :any, :column, :column_for_type_cast, :column_sql, :column_sql_format, :klass, :object_name, :table_name + attr_accessor :column, :column_for_type_cast, :column_sql, :column_sql_format, :explicit_any, :klass, :object_name, :table_name class_inheritable_accessor :handle_array_value, :ignore_meaningless_value, :join_arrays_with_or, :value_type self.ignore_meaningless_value = true class << self # Name of the condition type inferred from the class name @@ -59,11 +59,11 @@ self.column_sql_format = options[:column_sql_format] || "{table}.{column}" end end - def any? # :nodoc: - any == true + def explicit_any? # :nodoc: + explicit_any == true end # Substitutes string vars with table and column name. Allows us to switch the column and table on the fly and have the condition update appropriately. # The table name could be variable depending on the condition. Take STI and more than one child model is used in the condition, the first gets the parent table name, the rest get aliases. def column_sql \ No newline at end of file