Sha256: 1a5e339cb93094172901f8f0bb0f0efca495be3f0587d5a427ca37efc0e85541

Contents?: true

Size: 594 Bytes

Versions: 4

Compression:

Stored size: 594 Bytes

Contents

require_dependency "authz/application_controller"

module Authz
  class HomeController < ApplicationController
    def index
      routes = Rails.application.routes.set.anchored_routes.map(&:defaults).uniq
      not_found = []
      routes.each do |route|
        ca = ControllerAction.find_by(controller: route[:controller], action: route[:action])
        not_found << route unless ca
      end
      @non_created_controller_actions = not_found
      @invalid_scoping_rules = ScopingRule.where.not(scopable: Authz::Scopables::Base.get_scopables_names).pluck(:scopable).uniq
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
authz-0.0.1.alpha5 app/controllers/authz/home_controller.rb
authz-0.0.1.alpha4 app/controllers/authz/home_controller.rb
authz-0.0.1.alpha3 app/controllers/authz/home_controller.rb
authz-0.0.1.alpha2 app/controllers/authz/home_controller.rb