Sha256: 380354e3c783cb1aaaf9bffbb8b7937720a58a540d42ff45de463180f12c887b

Contents?: true

Size: 685 Bytes

Versions: 2

Compression:

Stored size: 685 Bytes

Contents

# Need to open the AS module carefully due to Rails 2.3 lazy loading
ActiveScaffold::Config::Core.class_eval do
  ActionDispatch::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_edit] = :get
  ActionDispatch::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_update] = :post
  #not working because routing picks show route instead
  #ActionDispatch::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_destroy] = :get
  #you may define a route for your controller before resource routes
  #match 'players/batch_destroy' => 'players#batch_destroy', :via => [:get]
  ActionDispatch::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:batch_destroy] = :delete
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active_scaffold_batch_vho-3.0.1 lib/active_scaffold_batch/config/core.rb
active_scaffold_batch_vho-3.0.0 lib/active_scaffold_batch/config/core.rb