v4.0.0rc4-branch #5
1 changed files with 1 additions and 0 deletions
|
@ -76,6 +76,7 @@ class Account::Field < ActiveModelSerializers::Model
|
|||
def extract_url_from_html
|
||||
doc = Nokogiri::HTML(value).at_xpath('//body')
|
||||
|
||||
return if doc.nil?
|
||||
return if doc.children.size > 1
|
||||
|
||||
element = doc.children.first
|
||||
|
|
Loading…
Reference in a new issue