mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-12 23:27:48 +00:00
Pull out override of 'visible' flag in enterprise serialiser
This commit is contained in:
@@ -45,10 +45,6 @@ class Api::CachedEnterpriseSerializer < ActiveModel::Serializer
|
||||
|
||||
has_one :address, serializer: Api::AddressSerializer
|
||||
|
||||
def visible
|
||||
object.visible && object.confirmed?
|
||||
end
|
||||
|
||||
def pickup
|
||||
object.shipping_methods.where(:require_ship_address => false).present?
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user