diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-03-28 16:01:35 -0400 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-03-28 16:01:35 -0400 |
commit | d55f7fee8125720bf416fd4c2fc2fdfdc69debf0 (patch) | |
tree | af85284574655ff853178a1dedae75e883839c0e /activesupport | |
parent | 8d50b45159b4fec446b4d1e1a756c326fcd582f0 (diff) | |
download | rails-d55f7fee8125720bf416fd4c2fc2fdfdc69debf0.tar.gz rails-d55f7fee8125720bf416fd4c2fc2fdfdc69debf0.tar.bz2 rails-d55f7fee8125720bf416fd4c2fc2fdfdc69debf0.zip |
starts_with? is removed in Ruby 2.4
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/evented_file_update_checker.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/evented_file_update_checker.rb b/activesupport/lib/active_support/evented_file_update_checker.rb index 8d9d19c2d9..f59f5d17dc 100644 --- a/activesupport/lib/active_support/evented_file_update_checker.rb +++ b/activesupport/lib/active_support/evented_file_update_checker.rb @@ -127,7 +127,7 @@ module ActiveSupport normalized_gem_paths = Gem.path.map { |path| File.join path, "" } dtw = dtw.reject do |path| - normalized_gem_paths.any? { |gem_path| path.to_s.starts_with?(gem_path) } + normalized_gem_paths.any? { |gem_path| path.to_s.start_with?(gem_path) } end @ph.filter_out_descendants(dtw) |