project package show api response add contact info

project_pack
p31729568 5 years ago
parent 26794ea41f
commit 64f74caaf0

@ -12,6 +12,8 @@ module Mobile
expose :bidding_users_count, if: { type: :index }
expose :min_price
expose :max_price
expose :contact_name, if: ->(package, opts){ opts[:user].id == package.creator_id || opts[:user].admin? || opts[:user].business? }
expose :contact_phone, if: ->(package, opts){ opts[:user].id == package.creator_id || opts[:user].admin? || opts[:user].business? }
expose :deadline_at do |package, _|
package.deadline_at.try(:utc).try(:iso8601)

Loading…
Cancel
Save