lib/searchlogic/named_scopes/conditions.rb
# Returns the primary name for any condition on a column. You can pass it
# a primary condition, alias condition, etc, and it will return the proper
# primary condition name. This helps simply logic throughout Searchlogic. Ex:
#
#   primary_condition_name(:id_gt) => :id_greater_than
#   primary_condition_name(:id_greater_than) => :id_greater_than
Returns the primary name for any condition on a column. You can pass it
a primary condition, alias condition, etc, and it will return the proper
primary condition name. This helps simply logic throughout Searchlogic. Ex.


Returns the primary name for any condition on a column . You can pass it a primary condition alias condition etc and it will return the proper primary condition name . This helps simply logic throughout Searchlogic . Ex .
def primary_condition_name(name)
          if details = condition_details(name)
            if PRIMARY_CONDITIONS.include?(name.to_sym)
              name
            else
              "#{details[:column]}_#{primary_condition(details[:condition])}".to_sym
            end
          else
            nil
          end
        end
def primary_condition_name ( name ) if details = condition_details ( name ) if PRIMARY_CONDITIONS . include? ( name . to_sym ) name else "#{details[:column]}_#{primary_condition(details[:condition])}" . to_sym end else nil end end
Returns the primary name for any condition on a column.
Returns the primary name for any condition on a column .
name
<not_specific>