Skip to content

Commit

Permalink
Fixed issue with nav does not check pjax config from an action.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmy Fan authored and Jimmy Fan committed May 27, 2015
1 parent 4bddbe3 commit 3243d83
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
%ul.nav.navbar-nav.navbar-right.root_links
- actions(:root).each do |action|
%li{class: "#{action.action_name}_root_link"}= link_to wording_for(:menu, action), { action: action.action_name, controller: 'rails_admin/main' }, class: "pjax"
%li{class: "#{action.action_name}_root_link"}= link_to wording_for(:menu, action), { action: action.action_name, controller: 'rails_admin/main' }, class: action.pjax? ? "pjax" : ""
- if main_app_root_path = (main_app.root_path rescue false)
%li= link_to t('admin.home.name'), main_app_root_path
- if _current_user
Expand Down

0 comments on commit 3243d83

Please sign in to comment.