Flowdock
method

case_insensitive_comparison

Importance_0
case_insensitive_comparison(table, attribute, column, value) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 454
      def case_insensitive_comparison(table, attribute, column, value) # :nodoc:
        if can_perform_case_insensitive_comparison_for?(column)
          table[attribute].lower.eq(table.lower(value))
        else
          table[attribute].eq(value)
        end
      end
Register or log in to add new notes.