mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Use Array() instead of Array.wrap
This commit is contained in:
parent
04317173a0
commit
8275cfb20f
2 changed files with 1 additions and 2 deletions
|
@ -8,7 +8,6 @@ require 'active_support'
|
|||
require 'active_support/json'
|
||||
require 'active_support/concern'
|
||||
require 'active_support/core_ext/hash/indifferent_access'
|
||||
require 'active_support/core_ext/array/wrap'
|
||||
require 'active_support/core_ext/module/delegation'
|
||||
require 'active_support/callbacks'
|
||||
|
||||
|
|
|
@ -172,7 +172,7 @@ module ActionCable
|
|||
origin_host = URI.parse(env['HTTP_ORIGIN']).host
|
||||
|
||||
allowed = if server.config.allowed_request_origins.present?
|
||||
Array.wrap(server.config.allowed_request_origins).include? origin_host
|
||||
Array(server.config.allowed_request_origins).include? origin_host
|
||||
else
|
||||
request.host == origin_host
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue