mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-25 05:45:15 +00:00
Fix Rails/Blank
This commit is contained in:
@@ -13,7 +13,7 @@ class ProducerProperty < ApplicationRecord
|
||||
end
|
||||
|
||||
def property_name=(name)
|
||||
return unless name.present?
|
||||
return if name.blank?
|
||||
|
||||
self.property = Spree::Property.find_by(name: name) ||
|
||||
Spree::Property.create(name: name, presentation: name)
|
||||
|
||||
Reference in New Issue
Block a user