Fix model field naming

This commit is contained in:
Bernie Chiu committed 2013-11-13 15:05:25 +08:00
1 parent 4666057748
commit e6257a95a4
1 file changed
+1 -1
@@ -42,7 +42,7 @@ class Bulletin
field :public, :type => Boolean, :default => true
field :rss_link
field :rss_resource
field :rss_source
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) }