diff options
author | Xavier Noria <fxn@hashref.com> | 2015-11-12 01:52:36 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2015-11-12 02:12:46 +0100 |
commit | 99c1043aa9a1ff81aa1eef6e957f7ebe89ff25f1 (patch) | |
tree | caf48ab5d7180ac22518a20d4826cac2e2ec4ad2 /activerecord/lib/active_record/attributes.rb | |
parent | 7d242be5a4fbfaea2d585905d76cc6bae45cbe77 (diff) | |
download | rails-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/lib/active_record/attributes.rb')
0 files changed, 0 insertions, 0 deletions