Skip to content

Commit

Permalink
chore: use delete() instead of gsub()
Browse files Browse the repository at this point in the history
  • Loading branch information
winebarrel committed Jan 22, 2022
1 parent d7a1abb commit d86f3f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ridgepole/ext/postgresql_adapter/partitioning.rb
Expand Up @@ -73,7 +73,7 @@ def partition(table_name)
def cast_value(value)
Integer(value)
rescue ArgumentError
value.gsub("'", '').gsub('"', '')
value.delete(%q("')) # "
end

def quote_value(value)
Expand Down

0 comments on commit d86f3f7

Please sign in to comment.