Changes for helpers, not including all by default

This commit is contained in:
chris committed 2012-10-09 14:47:16 +08:00
1 parent a0103d55c4
commit 189fa553c5
17 files changed
+13 -72

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
module Admin::AssetsHelper
def show_all_fields(asset, field)
a = []
@site_valid_locales.each do |locale|
a << asset.send("#{field}_translations")[locale] rescue nil
end
a.join(' - ')
end
end