Orbit/app/helpers/admin/assets_helper.rb

11 lines
221 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_valid_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