Module: BlackStack::Strings::SQL
- Defined in:
- lib/functions.rb
Overview
Fuzzy String Comparsion Functions: How similar are 2 strings that are not exactly equal.
Class Method Summary collapse
Class Method Details
.string_to_sql_string(s) ⇒ Object
174 175 176 177 |
# File 'lib/functions.rb', line 174 def self.string_to_sql_string(s) #return s.force_encoding("UTF-8").gsub("'", "''").to_s return s.gsub("'", "''").to_s end |