Shipping methods can be tagged

This commit is contained in:
Rob Harrington
2016-03-17 13:33:14 +11:00
parent 86c80124fc
commit f9acee2be4
7 changed files with 32 additions and 3 deletions

View 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