Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed duplicated method find_root_with_flag

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
  • Loading branch information...
commit b0157f8d045952930b683bc749610328840a61bf 1 parent 21ff884
@drogus drogus authored spastorino committed
Showing with 0 additions and 15 deletions.
  1. +0 −15 railties/lib/rails/engine.rb
View
15 railties/lib/rails/engine.rb
@@ -343,21 +343,6 @@ def inherited(base)
super
end
- def find_root_with_flag(flag, default=nil)
- root_path = self.called_from
-
- while root_path && File.directory?(root_path) && !File.exist?("#{root_path}/#{flag}")
- parent = File.dirname(root_path)
- root_path = parent != root_path && parent
- end
-
- root = File.exist?("#{root_path}/#{flag}") ? root_path : default
- raise "Could not find root path for #{self}" unless root
-
- RbConfig::CONFIG['host_os'] =~ /mswin|mingw/ ?
- Pathname.new(root).expand_path : Pathname.new(root).realpath
- end
-
def endpoint(endpoint = nil)
@endpoint = endpoint if endpoint
@endpoint
Please sign in to comment.
Something went wrong with that request. Please try again.