method

find

rails latest stable - Class: RailsEnvironment

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

find(dir=nil)
public

No documentation available.

# File railties/lib/rails/commands/plugin.rb, line 35
  def self.find(dir=nil)
    dir ||= pwd
    while dir.length > 1
      return new(dir) if File.exist?(File.join(dir, 'config', 'environment.rb'))
      dir = File.dirname(dir)
    end
  end