FIX: If the host can't be extracted don't raise an error
This commit is contained in:
parent
1768c45a33
commit
55ca5df96b
|
@ -1,6 +1,8 @@
|
|||
class IncomingDomain < ActiveRecord::Base
|
||||
def self.add!(uri)
|
||||
name = uri.host
|
||||
return unless name.present?
|
||||
|
||||
https = uri.scheme == "https"
|
||||
port = uri.port
|
||||
|
||||
|
|
Loading…
Reference in New Issue