Skip to content

Commit

Permalink
Fixed :show_in_app in object_links
Browse files Browse the repository at this point in the history
  • Loading branch information
ehoch committed Dec 31, 2011
1 parent eb360d4 commit 649b9aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/rails_admin/main/_object_links.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
%li.history_object_link{:class => ('active' if add_active_class && current_page?(link))}
= link_to t("admin.history.name"), link

- if authorized?(:show_in_app, @abstract_model, object) && (link = (main_app.url_for(object.id) rescue nil))
- if authorized?(:show_in_app, @abstract_model, object) && (link = (main_app.url_for(object) rescue nil))
%li.show_in_app_object_link
= link_to t("admin.show.show_in_app"), link

0 comments on commit 649b9aa

Please sign in to comment.