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:
parent
efd808755c
commit
47e4795060
3 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue