Compare commits

...
This repository has been archived on 2023-09-12. You can view files and clone it, but cannot push or open issues or pull requests.

1 Commits
master ... temp

Author SHA1 Message Date
JiangRu 5837e842e1 add is_hidden didn't show on json 2015-04-15 20:30:48 +08:00
1 changed files with 2 additions and 0 deletions

View File

@ -19,6 +19,8 @@ class Admin::BulletinsController < ApplicationController
end
bulletins = bulletins.where(:is_hot => params[:is_hot]) if !params[:is_hot].blank?
bulletins = bulletins.where(:is_hidden => false)
bulletins = bulletins.where(:category_id.in => params[:categories]) if !params[:categories].blank?
bulletins = bulletins.where(:tagged_ids.in => params[:tags]) if !params[:tags].blank?
bulletins = bulletins.where(:is_preview.in=>[false,nil])