Class: Integral::Backend::ListsController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/integral/backend/lists_controller.rb

Overview

List controller

Instance Method Summary collapse

Methods inherited from BaseController

#activities, #activity, #create, #destroy, #edit, #index, #list, #new, #show, #update

Instance Method Details

#duplicateObject

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