Navigation Menu

Skip to content

Commit

Permalink
Do not provide show link if the object does not have an id
Browse files Browse the repository at this point in the history
  • Loading branch information
danbeaulieu committed Aug 22, 2012
1 parent 3c83b27 commit 38cf0f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/rails_admin/main/_delete_notice.html.haml
Expand Up @@ -12,7 +12,7 @@
%li
- child_config = RailsAdmin.config(child)
= association[:pretty_name]
- if show_enabled
- if show_enabled & child.id
= link_to(child_config.with(:object => child).object_label, show_path(:model_name => child_config.abstract_model.to_param, :id => child.id))
- else
= child_config.with(:object => child).object_label

0 comments on commit 38cf0f0

Please sign in to comment.