Fix model field naming

This commit is contained in:
Bernie Chiu 2013-11-13 15:05:25 +08:00
parent 4666057748
commit e6257a95a4
1 changed files with 1 additions and 1 deletions

View File

@ -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) }