Sha256: aee71f478bd92f1ac238f1af53bb5d794bf53272134c6ba94a8e7738a69c8fc2

Contents?: true

Size: 378 Bytes

Versions: 4

Compression:

Stored size: 378 Bytes

Contents

class RowsExtController < RowsController

  def copy
    set_resource resource.dup
    resource.id = nil
    respond_to do |format|
      format.html { render :action => :new }
    end
  end

  def multi_deletion
    items = params[:multi_tick] || []
    items -= ['']
    items.map { |id|  model_class.find_by_id(id.to_i).destroy }
    redirect_to :action => :index
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rows_controller-1.1.7 app/controllers/rows_ext_controller.rb
rows_controller-1.1.6 app/controllers/rows_ext_controller.rb
rows_controller-1.0.3 app/controllers/rows_ext_controller.rb
rows_controller-1.0.1 app/controllers/rows_ext_controller.rb