app/views/tramway/admin/shared/show/_associations.html.haml in tramway-admin-1.16.1.1 vs app/views/tramway/admin/shared/show/_associations.html.haml in tramway-admin-1.17

- old
+ new

@@ -1,10 +1,10 @@ - object.associations(:has_many).each do |association| - if object.class.show_associations.map(&:to_s).include? association.name.to_s %tr %td = model_class.human_attribute_name association.name - = link_to fa_icon(:plus), new_record_path(model: association.class_name, redirect: current_model_record_path(object)), class: 'btn btn-primary' + = link_to fa_icon(:plus), 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