mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-04 02:31:33 +00:00
Shipping methods can be tagged
This commit is contained in:
7
app/serializers/api/admin/shipping_method_serializer.rb
Normal file
7
app/serializers/api/admin/shipping_method_serializer.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
class Api::Admin::ShippingMethodSerializer < ActiveModel::Serializer
|
||||
attributes :id, :name, :tags
|
||||
|
||||
def tags
|
||||
object.tag_list.map{ |t| { text: t } }
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user