mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fix rubocop warning
This commit is contained in:
committed by
François Turbelin
parent
9f988f7a02
commit
6d78ee8be4
@@ -133,6 +133,9 @@ class Enterprise < ApplicationRecord
|
||||
message: Spree.t('errors.messages.invalid_instagram_url')
|
||||
}, allow_blank: true
|
||||
validate :validate_white_label_logo_link
|
||||
validates :external_billing_id,
|
||||
format: { with: /\A\S+\Z/ },
|
||||
allow_blank: true
|
||||
|
||||
before_validation :initialize_permalink, if: lambda { permalink.nil? }
|
||||
before_validation :set_unused_address_fields
|
||||
|
||||
Reference in New Issue
Block a user