Sha256: 595c3a19d31b2b180e573fd8bdc81da3f5c6789e68be55432d1f58027673fc75
Contents?: true
Size: 1.92 KB
Versions: 4
Compression:
Stored size: 1.92 KB
Contents
module ActionDispatch::Routing class Mapper extend Deprecation def curate_for opts=nil Deprecation.warn Mapper, "curate_for no longer accepts any arguments. You provided: #{opts.inspect}" if opts scope module: 'curate' do resources 'collections', 'profiles', 'profile_sections', controller: 'collections' do collection do get :add_member_form put :add_member put :remove_member end end resources 'people', only: [:show, :index] do resources :depositors, only: [:index, :create, :destroy] end match 'profile' => 'user_profiles#show', via: :get, as: 'user_profile' end resources :downloads, only: [:show] namespace :curation_concern, path: :concern do Curate.configuration.registered_curation_concern_types.map(&:tableize).each do |container| resources container, except: [:index] end resources( :permissions, only:[]) do member do get :confirm post :copy end end resources( :linked_resources, only: [:new, :create], path: 'container/:parent_id/linked_resources') resources( :linked_resources, only: [:show, :edit, :update, :destroy]) resources( :generic_files, only: [:new, :create], path: 'container/:parent_id/generic_files') resources( :generic_files, only: [:show, :edit, :update, :destroy]) do member do get :versions put :rollback end end end resources :terms_of_service_agreements, only: [:new, :create] resources :help_requests, only: [:new, :create] resources :classify_concerns, only: [:new, :create] match "show/:id" => "common_objects#show", via: :get, as: "common_object" match "show/stub/:id" => "common_objects#show_stub_information", via: :get, as: "common_object_stub_information" end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
curate-0.6.4 | lib/curate/rails/routes.rb |
curate-0.6.3 | lib/curate/rails/routes.rb |
curate-0.6.1 | lib/curate/rails/routes.rb |
curate-0.6.0 | lib/curate/rails/routes.rb |