diff --git a/app/models/concerns/hstore_update.rb b/app/models/concerns/hstore_update.rb index 02345378..e131d6bb 100644 --- a/app/models/concerns/hstore_update.rb +++ b/app/models/concerns/hstore_update.rb @@ -18,7 +18,7 @@ def hstore_update(column, updater) end def hstore_sanitize(string) - self.class.sanitize string.to_s.gsub /["'=>\(\)]/, '' + self.class.connection.quote string.to_s.gsub /["'=>\(\)]/, '' end def hstore_escape(key_pairs)