Sha256: 06ec80fc8ed9756e243ab959bd1ea353a433145dc4c5a82cf495e82782a2232e

Contents?: true

Size: 442 Bytes

Versions: 17

Compression:

Stored size: 442 Bytes

Contents

EffectiveTrash::Engine.routes.draw do
  scope :module => 'effective' do

    if EffectiveTrash.routes_enabled
      resources :trash, only: [:index, :show] do
        member { get :restore }
      end
    end
  end

  if EffectiveTrash.routes_enabled
    namespace :admin do
      resources :trash, only: [:index, :show]
    end
  end

end

Rails.application.routes.draw do
  mount EffectiveTrash::Engine => '/', :as => 'effective_trash'
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
effective_trash-0.4.5 config/routes.rb
effective_trash-0.4.4 config/routes.rb
effective_trash-0.4.3 config/routes.rb
effective_trash-0.4.2 config/routes.rb
effective_trash-0.4.1 config/routes.rb
effective_trash-0.4.0 config/routes.rb
effective_trash-0.3.3 config/routes.rb
effective_trash-0.3.2 config/routes.rb
effective_trash-0.3.1 config/routes.rb
effective_trash-0.3.0 config/routes.rb
effective_trash-0.2.6 config/routes.rb
effective_trash-0.2.5 config/routes.rb
effective_trash-0.2.4 config/routes.rb
effective_trash-0.2.3 config/routes.rb
effective_trash-0.2.2 config/routes.rb
effective_trash-0.2.1 config/routes.rb
effective_trash-0.2.0 config/routes.rb