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