2012-10-09 06:47:16 +00:00
|
|
|
module Admin::AssetsHelper
|
2012-05-17 11:40:30 +00:00
|
|
|
|
|
|
|
def show_all_fields(asset, field)
|
|
|
|
a = []
|
|
|
|
@site_valid_locales.each do |locale|
|
2012-07-25 21:07:32 +00:00
|
|
|
a << asset.send("#{field}_translations")[locale] rescue nil
|
2012-05-17 11:40:30 +00:00
|
|
|
end
|
|
|
|
a.join(' - ')
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|