Class: AuthorizationRulesController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/authorization_rules_controller.rb,
app/controllers/authorization_rules_controller.rb

Instance Method Summary collapse

Instance Method Details

#graphObject



24
25
26
27
28
29
# File 'app/controllers/authorization_rules_controller.rb', line 24

def graph
  if params[:format] == "svg"
    render :text => dot_to_svg(auth_to_dot(graph_options)),
        :content_type => "image/svg+xml"
  end
end

#indexObject



16
17
18
19
20
21
22
# File 'app/controllers/authorization_rules_controller.rb', line 16

def index
  respond_to do |format|
    format.html do
      @auth_rules_script = File.read("#{RAILS_ROOT}/config/authorization_rules.rb")
    end
  end
end