This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
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 = []
|
2013-11-27 09:50:33 +00:00
|
|
|
@site_in_use_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
|
2013-09-09 15:10:04 +00:00
|
|
|
|
2012-05-17 11:40:30 +00:00
|
|
|
end
|