Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/core_ext/string.rb
Instance Method Summary collapse
Instance Method Details
#sql_escape_single_quotes ⇒ Object
2 3 4 |
# File 'lib/core_ext/string.rb', line 2 def sql_escape_single_quotes self.gsub(/[']/, "''") end |