```ruby
require 'yaml'

class SeleniumOnRailsConfig
  @@defaults = {:environments => ['test']}
  def self.get var, default = nil
    value = configs[var.to_s]
    value ||= @@defaults[var]
    value ||= default
    value ||= yield if block_given?
    value
  end

  private
    def self.configs
      unless defined? @@configs
        file = File.expand_path(File.dirname(__FILE__) + '/../config.yml')
        @@configs = File.exist?(file) ? YAML.load_file(file) : {}
      end
      @@configs
    end

end
```

Add Ryan Bates patch to use config from config folder
user
```ruby
require 'yaml'
require 'erb'

class SeleniumOnRailsConfig
  @@defaults = {:environments => ['test']}
  def self.get var, default = nil
    value = configs[var.to_s]
    value ||= @@defaults[var]
    value ||= default
    value ||= yield if block_given?
    value
  end

  private
    def self.configs
      unless defined? @@configs
        files = [File.expand_path(File.dirname(__FILE__) + '/../config.yml')]
        files << File.join(RAILS_ROOT, 'config', 'selenium.yml')
        files.each do |file|
          @@configs = YAML.load(ERB.new(IO.read(file)).result) if File.exist?(file)
        end
        @@configs ||= {}
      end
      @@configs
    end
end
```
assistant