Mostly enriching supplier's user info with number of lists finished at the restaurant

This commit is contained in:
2020-03-06 19:27:44 -05:00
parent f1ef618dae
commit eda3fc280b
7 changed files with 66 additions and 8 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
class Suppliers::UserSerializer
include Qwaiter::SupplierBaseSerializer
attributes :email, :provider, :uid, :avatar
attributes :email, :provider, :uid, :avatar, :number_of_lists_at_supplier
attribute(:name) { object.supplier_name }
end