Browse Source

Fix performance regression in Account::Field#verifiable? (#8719)

* Fix performance regression in Account::Field#verifiable?

Regression from #8703

* Fix code style issue
pull/4/head
Eugen Rochko 5 years ago
committed by GitHub
parent
commit
bac8227519
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/models/account.rb

+ 1
- 1
app/models/account.rb View File

@ -323,7 +323,7 @@ class Account < ApplicationRecord
end
def verifiable?
value.present? && /\A#{FetchLinkCardService::URL_PATTERN}\z/ =~ value
value.present? && value.start_with?('http://', 'https://')
end
def mark_verified!

Loading…
Cancel
Save