% if task.custom_values.present? %> <% task.custom_values.each_pair do |name, value| %> <% custom_field = CustomField.where(:name =>name, :environment => task.environment).first%> <% if custom_field.moderation_task %>