Fix for togglebox and menu_enabled_for

This commit is contained in:
chris committed 2013-10-30 17:26:31 +08:00
1 parent dfd0b5c1fb
commit 62c663d699
5 files changed
+53 -51

No files matched your search

+1 -1
View File
@@ -270,7 +270,7 @@ namespace :new_ui do
item['menu_enabled_for'] = \
if item['menu_enabled_for'].present?
VALID_LOCALES.inject({}) do |enable, locale|
enable[locale] = Array(item['menu_enabled_for']).include?(locale)
enable[locale] = Array(item['menu_enabled_for']).include?(locale.to_s)
enable
end
else