add is_hidden didn't show on json
This commit is contained in:
parent
fa3fa2278f
commit
5837e842e1
|
@ -19,6 +19,8 @@ class Admin::BulletinsController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
bulletins = bulletins.where(:is_hot => params[:is_hot]) if !params[:is_hot].blank?
|
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(:category_id.in => params[:categories]) if !params[:categories].blank?
|
||||||
bulletins = bulletins.where(:tagged_ids.in => params[:tags]) if !params[:tags].blank?
|
bulletins = bulletins.where(:tagged_ids.in => params[:tags]) if !params[:tags].blank?
|
||||||
bulletins = bulletins.where(:is_preview.in=>[false,nil])
|
bulletins = bulletins.where(:is_preview.in=>[false,nil])
|
||||||
|
|
Reference in New Issue