修改了个人主页的关注需求里面只显示需求不显示作业
This commit is contained in:
parent
928dedae65
commit
a0c6a183fe
|
@ -78,6 +78,7 @@ class UsersController < ApplicationController
|
||||||
##added by fq
|
##added by fq
|
||||||
def watch_bids
|
def watch_bids
|
||||||
@bids = Bid.watched_by(@user)
|
@bids = Bid.watched_by(@user)
|
||||||
|
@bids = Bid.visible.where('reward_type = ?', 1)
|
||||||
@offset, @limit = api_offset_and_limit({:limit => 10})
|
@offset, @limit = api_offset_and_limit({:limit => 10})
|
||||||
@bid_count = @bids.count
|
@bid_count = @bids.count
|
||||||
@bid_pages = Paginator.new @bid_count, @limit, params['page']
|
@bid_pages = Paginator.new @bid_count, @limit, params['page']
|
||||||
|
|
Loading…
Reference in New Issue