Skip to content

Commit

Permalink
Merge pull request #2309 from fanminjian/fix/fix_nav_does_not_check_pjax
Browse files Browse the repository at this point in the history
Fixed issue with nav does not check pjax config from an action.
  • Loading branch information
bbenezech committed Feb 4, 2016
2 parents 12aeaf3 + 3243d83 commit ff6246c
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 ff6246c

Please sign in to comment.