aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2017-02-12 03:50:51 -0800
committerGitHub <noreply@github.com>2017-02-12 03:50:51 -0800
commite4654aa93c3cf21949b72873072833b766ef7770 (patch)
tree033b466c6ea037e0dcd5513443fde63b79c278d7 /railties/lib
parentb61a029782fb843eb30bec8f36784717fddc4ba8 (diff)
parent16ee3ccc9c7992269e69e9e809257d56c81ce174 (diff)
downloadrails-e4654aa93c3cf21949b72873072833b766ef7770.tar.gz
rails-e4654aa93c3cf21949b72873072833b766ef7770.tar.bz2
rails-e4654aa93c3cf21949b72873072833b766ef7770.zip
Merge pull request #27974 from kamipo/add_new_rubocop_rule
Add `Style/EmptyLinesAroundMethodBody` in `.rubocop.yml` and remove extra empty lines
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/engine.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/railties/lib/rails/engine.rb b/railties/lib/rails/engine.rb
index 13af6051ce..dc0b158bd4 100644
--- a/railties/lib/rails/engine.rb
+++ b/railties/lib/rails/engine.rb
@@ -661,7 +661,6 @@ module Rails
end
def self.find_root_with_flag(flag, root_path, default = nil) #:nodoc:
-
while root_path && File.directory?(root_path) && !File.exist?("#{root_path}/#{flag}")
parent = File.dirname(root_path)
root_path = parent != root_path && parent