Sha256: dc28a01f5395dea39a2461e7c4332204ece42526c6404c6793c89fb47fad54ee

Contents?: true

Size: 574 Bytes

Versions: 5

Compression:

Stored size: 574 Bytes

Contents

Rails.application.routes.draw do

  namespace :admin do
    resources :photos do
      get 'library', :on => :collection
      post 'mass_destroy', :on => :collection
    end
    resources :photo_albums
    resources :photo_galleries
  end

  scope Spud::Photos.config.base_path do
    if Spud::Photos.config.galleries_enabled
      resources :photo_galleries, :only => :index, :path => '/' do
        resources :photo_albums, :only => [:index, :show], :path => '/'
      end
    else
      resources :photo_albums, :only => [:index, :show], :path => '/'
    end
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tb_photos-1.0.6 config/routes.rb
tb_photos-1.1.0 config/routes.rb
tb_photos-1.1.0.beta1 config/routes.rb
tb_photos-1.0.5 config/routes.rb
tb_photos-1.0.4 config/routes.rb