Fix can_display

This commit is contained in:
chris committed 2012-08-16 18:55:34 +08:00
1 parent 3c283d1a7a
commit edf9d8a159
4 files changed
+6 -6

No files matched your search

@@ -43,7 +43,7 @@ class Bulletin
field :public, :type => Boolean, :default => true
scope :can_display,all_of(is_checked: true,is_rejected: false,is_pending: false)
scope :can_display, where(is_checked: true, is_rejected: false, is_pending: false)
scope :available_for_lang, ->(locale){ where("available_for_#{locale}".to_sym => true) }
mount_uploader :image, ImageUploader