Sha256: e9046f300ae8ad4828cf8f540a8540469bc846668c30799a28b772d540bfec1a
Contents?: true
Size: 688 Bytes
Versions: 1
Compression:
Stored size: 688 Bytes
Contents
# -*- encoding : utf-8 -*- module Hydra module BatchEdit class Routes def initialize(router, options) @router = router @options = options end def draw add_routes do |options| match 'batch_edits/:id' => 'batch_edits#add', :via=>:put resources :batch_edits, :only=>[:index] do member do delete :destroy end collection do get :edit put :update delete :clear end end end end protected def add_routes &blk @router.instance_exec(@options, &blk) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hydra-batch-edit-0.0.1 | lib/hydra/batch_edit/routes.rb |