Sha256: 6ce0b5530b2e40532206e9ff778474f1c06677e994f0071512259b0a97d773b5

Contents?: true

Size: 971 Bytes

Versions: 2

Compression:

Stored size: 971 Bytes

Contents

require 'rails_versioned_routing'

Dummy::Application.routes.draw do
  extend RailsVersionedRouting

  beta! do
    get 'a_path_overridden_from_v1/:id/whats/:ok', controller: 'sample', action: 'a_path_overridden_from_v1'
    get 'a_path_only_in_beta', controller: 'sample'
  end

  version(3) do
    post 'a_path_only_in_v3', controller: 'sample', action: 'posted_a_path_only_in_v3'
    get 'a_path_only_in_v3', controller: 'sample'
  end

  version(2) do
    get 'a_path_overridden_from_v1/:id/whats/:ok', controller: 'sample', action: 'a_path_overridden_from_v1'
    get 'a_path_in_v2', controller: 'sample'

    removed do
      get 'another_path_in_v1', controller: 'sample'
    end
  end

  version(1) do
    get 'a_path_in_v1', controller: 'sample'
    get 'another_path_in_v1', controller: 'sample'
    get 'a_path_overridden_from_v1/:id/whats/:ok', controller: 'sample', action: 'a_path_overridden_from_v1'
  end

  get 'final_fallback', controller: 'sample'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_versioned_routing-1.4.1 test/dummy/config/routes.rb
rails_versioned_routing-1.4.0 test/dummy/config/routes.rb