Class: AuthorizationRulesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- AuthorizationRulesController
- Defined in:
- app/controllers/authorization_rules_controller.rb,
app/controllers/authorization_rules_controller.rb
Instance Method Summary collapse
Instance Method Details
#graph ⇒ Object
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()), :content_type => "image/svg+xml" end end |
#index ⇒ Object
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 |