motion/adapters/array_finder_query.rb
def contain(query_string, options = {:case_sensitive => false})
      do_comparison(query_string) do |comparator, item|
        if options[:case_sensitive]
          item =~ Regexp.new(comparator, Regexp::MULTILINE)
        else
          item =~ Regexp.new(comparator, Regexp::IGNORECASE | Regexp::MULTILINE)
        end
      end
    end
def contain(query_string, options = {:case_sensitive => false})
      do_comparison(query_string) do |comparator, item|
        if options[:case_sensitive]
          item =~ Regexp.new(comparator, Regexp::MULTILINE)
        else
          item =~ Regexp.new(comparator, Regexp::IGNORECASE | Regexp::MULTILINE)
        end
      end
    end
def contain ( query_string , options = { :case_sensitive => false } ) do_comparison ( query_string ) do | comparator , item | if options [ :case_sensitive ] item =~ Regexp . new ( comparator , Regexp :: MULTILINE ) else item =~ Regexp . new ( comparator , Regexp :: IGNORECASE | Regexp :: MULTILINE ) end end end
performs a "like" query.

 Task.find(:work_group).contain('dev') => ['UI dev', 'Core dev', ...]
performs a like query .