Class: Integral::Backend::ListsController
- Inherits:
-
BaseController
- Object
- ActionController::Base
- BaseController
- Integral::Backend::ListsController
- Defined in:
- app/controllers/integral/backend/lists_controller.rb
Overview
List controller
Instance Method Summary collapse
-
#duplicate ⇒ Object
POST /:id/duplicate Duplicate a resource.
Methods inherited from BaseController
#activities, #activity, #create, #destroy, #edit, #index, #list, #new, #show, #update
Instance Method Details
#duplicate ⇒ Object
POST /:id/duplicate Duplicate a resource
10 11 12 13 14 |
# File 'app/controllers/integral/backend/lists_controller.rb', line 10 def duplicate super do |cloned_resource| cloned_resource.title = "Copy #{@resource.title}" end end |