is preview fixed
This commit is contained in:
parent
aeb3fb3fdb
commit
47c8900a5d
|
@ -51,7 +51,7 @@ class Bulletin
|
|||
|
||||
# before_save :fetch_dept
|
||||
|
||||
scope :can_display, ->{where(:is_hidden=>false).any_of({:postdate.lt=>Time.now, :deadline.gt=>Time.now},{:postdate.lt=>Time.now, :deadline=>nil}).order_by([:is_top, :desc])}
|
||||
scope :can_display, ->{where(:is_hidden=>false,:is_preview => false).any_of({:postdate.lt=>Time.now, :deadline.gt=>Time.now},{:postdate.lt=>Time.now, :deadline=>nil}).order_by([:is_top, :desc])}
|
||||
scope :is_approved, ->{where(:approved => true)}
|
||||
|
||||
def update_user
|
||||
|
|
Reference in New Issue