- object = delete_notice %li{:style => 'display:block; margin-top:10px'} %span.label= @abstract_model.pretty_name = link_to @model_config.with(:object => object).object_label, show_path(:model_name => @abstract_model.to_param, :id => object.id) %ul - @abstract_model.associations.select{|a| a[:type] == :has_many }.each do |association| - object.send(association[:name]).each do |child| %li - child_config = RailsAdmin.config(child) = association[:pretty_name] = link_to(child_config.with(:object => child).object_label, show_path(:model_name => child_config.abstract_model.to_param, :id => child.id)) - @abstract_model.associations.select{|a| a[:type] == :has_one }.each do |association| - if child = object.send(association[:name]) %li - child_config = RailsAdmin.config(child) = association[:pretty_name] = link_to(child_config.with(:object => child).object_label, show_path(:model_name => child_config.abstract_model.to_param, :id => child.id))