Fix for data_migration

This commit is contained in:
Christophe Vilayphiou committed 2012-08-01 00:58:59 +08:00
1 parent b2f28eabaf
commit c951cc6b6f
3 files changed
+6 -3

No files matched your search

@@ -232,7 +232,7 @@ class Bulletin
def update_avliable_language
VALID_LOCALES.each do |locale|
unless title[locale].blank? || subtitle[locale].blank? || text[locale].blank?
if (title_translations[locale].blank? rescue true)
self["available_for_#{locale}".to_sym] = false
else
self["available_for_#{locale}".to_sym] = true
+1 -1
View File
@@ -205,7 +205,7 @@ class NewsBulletin
protected
def update_avliable_language
VALID_LOCALES.each do |locale|
unless title[locale].blank? || subtitle[locale].blank? || text[locale].blank?
if (title_translations[locale].blank? rescue true)
self["available_for_#{locale}".to_sym] = false
else
self["available_for_#{locale}".to_sym] = true