app/views/tramway/admin/shared/show/_associations.html.haml in tramway-admin-1.18.0.1 vs app/views/tramway/admin/shared/show/_associations.html.haml in tramway-admin-1.18.1

- old
+ new

@@ -1,9 +1,9 @@ - if object.class.show_associations.map(&:to_s).include? association.name.to_s %tr %td = model_class.human_attribute_name association.name - = link_to "Add #{model_class.human_attribute_name association.name}", new_associated_record_path(association: association, object: object), class: 'btn btn-primary' + = link_to "Add #{model_class.human_attribute_name(association.name).singularize}", new_associated_record_path(association: association, object: object), class: 'btn btn-primary' %td{ colspan: 2 } %table.table.table-striped.table-bordered - object.send(association.name)&.each do |association_object| %tr %td