Skip to content

Commit

Permalink
Rails 5.1 - Replace sanitize (no longer public method) (#359)
Browse files Browse the repository at this point in the history
* remove version constraints and update next? dual boot to run rails 5.1

* remove version constraint for dev dependency spring

* replace sanitize with .connection.quote
  • Loading branch information
yuenmichelle1 authored Aug 15, 2024
1 parent 28791b6 commit d024c5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/concerns/hstore_update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d024c5b

Please sign in to comment.