Class: Validations::ActionNamesController Private

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/authz/validations/action_names_controller.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#newObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



6
7
8
9
10
11
12
13
14
# File 'app/controllers/authz/validations/action_names_controller.rb', line 6

def new
  _controller_name = params[:controller_name]
  _action_name = params[:controller_action][:action]
  found = ControllerAction.reachable_controller_actions[_controller_name].try(:include?, _action_name)

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