Authorization Usage

<%= render 'authorization_rules/show_graph' %>

Filter rules in actions by controller:

<%= navigation %>

<% @auth_usages_by_controller.keys.sort {|c1, c2| c1.name <=> c2.name}.each do |controller| %> <% default_context = controller.controller_name.to_sym rescue nil %> <% @auth_usages_by_controller[controller].keys.sort {|c1, c2| c1.to_s <=> c2.to_s}.each do |action| %> <% auth_info = @auth_usages_by_controller[controller][action] %> <% first_permission = auth_info[:controller_permissions] && auth_info[:controller_permissions][0] %> <% if first_permission %> <% else %> <% end %> <% end %> <% end %>
<%= h controller.name.underscore.sub(/_controller\Z/, '') %>
<%= h action %><%= h auth_info[:privilege] || action %> <%= h auth_info[:context] || default_context %>