molten-trunk/molten5_withgrid/vendor/plugins/acts_as_ferret/lib/ferret_server.rb
def load(file = "#{RAILS_ROOT}/config/ferret_server.yml")
          config = DEFAULTS.merge(YAML.load(ERB.new(IO.read(file)).result))
          if config = config[RAILS_ENV]
            config[:uri] = "druby://#{config['host']}:#{config['port']}"
            return config
          end
          {}
        end
# read connection settings from config file
read connection settings from config file
read connection settings from config file
def load(file = "#{RAILS_ROOT}/config/ferret_server.yml")
          config = DEFAULTS.merge(YAML.load(ERB.new(IO.read(file)).result))
          if config = config[RAILS_ENV]
            config[:uri] = "druby://#{config['host']}:#{config['port']}"
            return config
          end
          {}
        end
def load ( file = "#{RAILS_ROOT}/config/ferret_server.yml" ) config = DEFAULTS . merge ( YAML . load ( ERB . new ( IO . read ( file ) ) . result ) ) if config = config [ RAILS_ENV ] config [ :uri ] = "druby://#{config['host']}:#{config['port']}" return config end { } end
read connection settings from config file
read connection settings from config file
file