Sha256: 28f2fbdc2ffa9bedc3dd5bebc154d1de50cb96e8d84d0c507906120154f57492

Contents?: true

Size: 426 Bytes

Versions: 8

Compression:

Stored size: 426 Bytes

Contents

Disclaimer::Engine.routes.draw do
  
  if Disclaimer.enable_crud?
    root :to => "documents#index"

    resources :documents do
      member do
        get :delete
        post :accept
      end
    end

    resources :segments do
      member do
        get :delete
      end
    end
    
  else
  
   resources :documents, :only => :show do
      member do
        post :accept
      end
    end
    

    
  end
    

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
disclaimer-0.1.1 config/routes.rb
disclaimer-0.1.0 config/routes.rb
disclaimer-0.0.7 config/routes.rb
disclaimer-0.0.6 config/routes.rb
disclaimer-0.0.5 config/routes.rb
disclaimer-0.0.4 config/routes.rb
disclaimer-0.0.3 config/routes.rb
disclaimer-0.0.2 config/routes.rb