Filter rules in actions by controller:
<%= navigation %>
<% javascript_tag do %> function show_graph (privilege, context) { base_url = "<%= graph_authorization_rules_path('svg') %>"; $('graph').data = base_url + '?privilege_hierarchy=1&highlight_privilege=' + privilege + '&filter_contexts=' + context; $('graph').up().show(); } <% end %><%= h controller.controller_name %> | ||||
---|---|---|---|---|
<%= h action %> | <% if first_permission %><%= h auth_info[:privilege] || action %> | <%= h auth_info[:context] || default_context %> | <% else %><% end %> |