orbit-basic/app/helpers/admin/assets_helper.rb

11 lines
222 B
Ruby
Raw Permalink Normal View History

module Admin::AssetsHelper
2012-05-17 11:40:30 +00:00
def show_all_fields(asset, field)
a = []
@site_in_use_locales.each do |locale|
a << asset.send("#{field}_translations")[locale] rescue nil
2012-05-17 11:40:30 +00:00
end
a.join(' - ')
end
2012-05-17 11:40:30 +00:00
end