Class: AuthorizationRulesController

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

Instance Method Summary collapse

Instance Method Details

#graphObject



20
21
22
23
24
25
# File 'app/controllers/authorization_rules_controller.rb', line 20

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

#indexObject



12
13
14
15
16
17
18
# File 'app/controllers/authorization_rules_controller.rb', line 12

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