Orbit/app/helpers/admin/asset_helper.rb

11 lines
200 B
Ruby
Raw Normal View History

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