Sha256: 0c9b686e0932ec134ef43791d644248e09a77c13cdd7b577865cff9de8223905

Contents?: true

Size: 394 Bytes

Versions: 3

Compression:

Stored size: 394 Bytes

Contents

require_dependency "authz/application_controller"

module Authz
  # @api private
  class Validations::ControllerNamesController < ApplicationController
    def new
      name = params[:controller_action][:controller]
      found = ControllerAction.reachable_controller_actions[name].present?

      respond_to do |format|
        format.json {render :json => found}
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
authz-0.0.5 app/controllers/authz/validations/controller_names_controller.rb
authz-0.0.4 app/controllers/authz/validations/controller_names_controller.rb
authz-0.0.3 app/controllers/authz/validations/controller_names_controller.rb