|
|
@ -12,6 +12,8 @@ module Mobile
|
|
|
|
expose :bidding_users_count, if: { type: :index }
|
|
|
|
expose :bidding_users_count, if: { type: :index }
|
|
|
|
expose :min_price
|
|
|
|
expose :min_price
|
|
|
|
expose :max_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, _|
|
|
|
|
expose :deadline_at do |package, _|
|
|
|
|
package.deadline_at.try(:utc).try(:iso8601)
|
|
|
|
package.deadline_at.try(:utc).try(:iso8601)
|
|
|
|