|
|
|
@ -85,7 +85,7 @@ class ProjectPackage < ActiveRecord::Base
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def can_bidding?(user)
|
|
|
|
|
published? && !bidding_end? && !bidding_users.exists?(user_id: user.id)
|
|
|
|
|
published? && !bidding_end? && user.id != creator_id && !bidding_users.exists?(user_id: user.id)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def increment_visit_count!
|
|
|
|
|