Fix can_display
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user