find(path)
Finds engine with given path
# File railties/lib/rails/engine.rb, line 411 def find(path) expanded_path = File.expand_path path.to_s Rails::Engine::Railties.engines.find { |engine| File.expand_path(engine.root.to_s) == expanded_path } end