diff options
author | Ricardo Díaz <ricardotk002@gmail.com> | 2019-02-13 22:11:36 -0500 |
---|---|---|
committer | Ricardo Díaz <ricardotk002@gmail.com> | 2019-02-13 22:56:34 -0500 |
commit | df29b6643b116502eebdf434f9d7d23187b1b156 (patch) | |
tree | 417fbee3cceddecbed17a507e384172b5057b340 /activerecord/test/models/member.rb | |
parent | ac68550ae6d117b1d257f5df38ba76e03b7e2cf4 (diff) | |
download | rails-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 'activerecord/test/models/member.rb')
0 files changed, 0 insertions, 0 deletions