Method: EasyApiDoc::DocumentationController#api_action
- Defined in:
- app/controllers/easy_api_doc/documentation_controller.rb
#api_action ⇒ Object
17 18 19 20 |
# File 'app/controllers/easy_api_doc/documentation_controller.rb', line 17 def api_action @resource = @namespace.resources.find {|r| r.name == params[:resource] } @action = @resource.actions.find {|a| a.name == params[:api_action] } end |