aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/test
diff options
context:
space:
mode:
authorRicardo Díaz <ricardotk002@gmail.com>2019-02-13 22:11:36 -0500
committerRicardo Díaz <ricardotk002@gmail.com>2019-02-13 22:56:34 -0500
commitdf29b6643b116502eebdf434f9d7d23187b1b156 (patch)
tree417fbee3cceddecbed17a507e384172b5057b340 /activestorage/test
parentac68550ae6d117b1d257f5df38ba76e03b7e2cf4 (diff)
downloadrails-df29b6643b116502eebdf434f9d7d23187b1b156.tar.gz
rails-df29b6643b116502eebdf434f9d7d23187b1b156.tar.bz2
rails-df29b6643b116502eebdf434f9d7d23187b1b156.zip
Use Dir#children and Dir#each_child instead of excluding "." and ".."
Both methods were introduced in Ruby 2.5 and fit this use case very nicely: listing a directory's entries excluding the "." and ".." nodes. The private method #exclude_from was removed as it no longer serves its original purpose.
Diffstat (limited to 'activestorage/test')
0 files changed, 0 insertions, 0 deletions