aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/adapters/mysql/connection_test.rb
diff options
context:
space:
mode:
authorSeamus Abshere <seamus@abshere.net>2012-02-01 18:58:00 -0600
committerSeamus Abshere <seamus@abshere.net>2012-02-01 18:58:00 -0600
commitbbef7b012f8ef3ce9c92c553379a63814201e12f (patch)
treeb71da8f0ebcb5eeba189d78c7e6adcf545fe9185 /activerecord/test/cases/adapters/mysql/connection_test.rb
parent66fc1d6ac8f0f7b797ae18fdcb15cd618e4251f1 (diff)
downloadrails-bbef7b012f8ef3ce9c92c553379a63814201e12f.tar.gz
rails-bbef7b012f8ef3ce9c92c553379a63814201e12f.tar.bz2
rails-bbef7b012f8ef3ce9c92c553379a63814201e12f.zip
Possibly clearer way of getting rid of ` and "
Incidentally it's also faster... >> a = 'hello "id` world'; Benchmark.realtime { 500_000.times { a.tr('`"', "") } } => 0.7388770580291748 >> a = 'hello "id` world'; Benchmark.realtime { 500_000.times { a.gsub(/[`"]/, "") } } => 1.7843739986419678
Diffstat (limited to 'activerecord/test/cases/adapters/mysql/connection_test.rb')
0 files changed, 0 insertions, 0 deletions