Sha256: 3d9b209de19e517bd13553352a175b4a8b4fb05fe08f1df9d87052179f43bb37

Contents?: true

Size: 1.91 KB

Versions: 2

Compression:

Stored size: 1.91 KB

Contents

Rails.application.routes.draw do
  # See `config/routes.rb` for details.
  collection_actions = [:index, :new, :create] # standard:disable Lint/UselessAssignment
  extending = {only: []}

  namespace :api do
    namespace :v1 do
      shallow do
        resources :teams, extending do
          unless scaffolding_things_disabled?
            namespace :scaffolding do
              namespace :absolutely_abstract do
                resources :creative_concepts do
                  scope module: "creative_concepts" do
                    resources :collaborators, only: collection_actions
                  end

                  namespace :creative_concepts do
                    resources :collaborators, except: collection_actions
                  end
                end
              end
              resources :absolutely_abstract_creative_concepts, path: "absolutely_abstract/creative_concepts" do
                namespace :completely_concrete do
                  resources :tangible_things
                end
              end
            end
          end
        end
      end
    end
  end

  namespace :account do
    shallow do
      resources :teams do
        unless scaffolding_things_disabled?
          namespace :scaffolding do
            namespace :absolutely_abstract do
              resources :creative_concepts do
                scope module: "creative_concepts" do
                  resources :collaborators, only: collection_actions
                end

                namespace :creative_concepts do
                  resources :collaborators, except: collection_actions
                end
              end
            end
            resources :absolutely_abstract_creative_concepts, path: "absolutely_abstract/creative_concepts" do
              namespace :completely_concrete do
                resources :tangible_things
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bullet_train-super_scaffolding-1.1.2 config/routes.rb
bullet_train-super_scaffolding-1.1.1 config/routes.rb