aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/adapters/postgresql/quoting_test.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2015-11-12 01:52:36 +0100
committerXavier Noria <fxn@hashref.com>2015-11-12 02:12:46 +0100
commit99c1043aa9a1ff81aa1eef6e957f7ebe89ff25f1 (patch)
treecaf48ab5d7180ac22518a20d4826cac2e2ec4ad2 /activerecord/test/cases/adapters/postgresql/quoting_test.rb
parent7d242be5a4fbfaea2d585905d76cc6bae45cbe77 (diff)
downloadrails-99c1043aa9a1ff81aa1eef6e957f7ebe89ff25f1.tar.gz
rails-99c1043aa9a1ff81aa1eef6e957f7ebe89ff25f1.tar.bz2
rails-99c1043aa9a1ff81aa1eef6e957f7ebe89ff25f1.zip
base (refined) Pathname#ascendant_of? also on Pathname#ascend
A small rewrite in a last attempt at writing obvious and portable code without manual string manipulation. Note that Pathname#== uses string comparison on Windows, so if client code passes "C:\foo" and "c:/foo/bar" the predicate won't see the former is an ascendant of the latter. Risky business.
Diffstat (limited to 'activerecord/test/cases/adapters/postgresql/quoting_test.rb')
0 files changed, 0 insertions, 0 deletions