mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Update app/models/enterprise.rb - optimise delete @ method
Co-authored-by: Maikel <maikel@email.org.au>
This commit is contained in:
committed by
Maikel Linke
parent
6f9fc9f06c
commit
f8c45b3e31
@@ -429,7 +429,7 @@ class Enterprise < ApplicationRecord
|
||||
end
|
||||
|
||||
def correct_social_url(url)
|
||||
url&.include?("@") ? url.delete!("@") : url
|
||||
url&.delete("@")
|
||||
end
|
||||
|
||||
def set_unused_address_fields
|
||||
|
||||
Reference in New Issue
Block a user