Class: Admin::CrudController::Responder

Inherits:
ActionController::Responder
  • Object
show all
Defined in:
app/controllers/admin/crud_controller.rb

Overview

Custom Responder that handles the controller's path_args. An additional :success option is used to handle action callback chain halts.

Instance Method Summary collapse

Constructor Details

#initialize(controller, resources, options = {}) ⇒ Responder

Returns a new instance of Responder


214
215
216
# File 'app/controllers/admin/crud_controller.rb', line 214

def initialize(controller, resources, options = {})
  super(controller, with_path_args(resources, controller), options)
end