<% object ||= current_attributes_object %> <% strategy ||= current_attributes_strategy || :none %> <% url ||= nil %> <% if object.send(attribute).any? %> <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url do %> <%= object.send(attribute).map do |value| %> <% t("#{object.class.name.underscore.pluralize}.fields.#{attribute}.options.#{value}") %> <% end.map(&:strip).to_sentence %> <% end %> <% end %>