1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Apply Rafaels review fixes.

This commit is contained in:
Kasper Timm Hansen 2016-09-18 08:40:46 +02:00
parent efd808755c
commit 47e4795060
3 changed files with 4 additions and 3 deletions

View file

@ -21,7 +21,7 @@ module Rails
# This code is based directly on the Text gem implementation.
# Copyright (c) 2006-2013 Paul Battley, Michael Neumann, Tim Fletcher.
#
# Returns a value representing the "cost" of transforming str1 into str2
# Returns a value representing the "cost" of transforming str1 into str2.
def levenshtein_distance(str1, str2)
s = str1
t = str2

View file

@ -90,7 +90,9 @@ module Rails
end
def default_options
super.merge( Port: ENV.fetch("PORT", 3000).to_i,
super.merge(
Port: ENV.fetch("PORT", 3000).to_i,
Host: ENV.fetch("HOST", "localhost").dup,
DoNotReverseLookup: true,
environment: (ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development").dup,
daemonize: false,

View file

@ -1,5 +1,4 @@
require "active_support/core_ext/module/attribute_accessors"
require "active_support/core_ext/hash/keys"
require "rails/test_unit/reporter"
require "rails/test_unit/test_requirer"
require "shellwords"