lib/active_scaffold/finder.rb
# Takes a collection of search terms (the tokens) and creates SQL that
# searches all specified ActiveScaffold columns. A row will match if each
# token is found in at least one of the columns.
Takes a collection of search terms (the tokens) and creates SQL that
searches all specified ActiveScaffold columns. A row will match if each
token is found in at least one of the columns.
Takes a collection of search terms ( the tokens ) and creates SQL that searches all specified ActiveScaffold columns . A row will match if each token is found in at least one of the columns .
def like_pattern(text_search)
        case text_search
          when :full then '%?%'
          when :start then '?%'
          when :end then '%?'
          else '?'
        end
      end
def like_pattern ( text_search ) case text_search when :full then '%?%' when :start then '?%' when :end then '%?' else '?' end end
Takes a collection of search terms (the tokens) and creates SQL that
searches all specified ActiveScaffold columns.
Takes a collection of search terms ( the tokens ) and creates SQL that searches all specified ActiveScaffold columns .
text_search
<not_specific>