Sha256: 60174bf3d8273df041776cb5ff5085627aad69b10a5b9fe152985db5ebc59269

Contents?: true

Size: 287 Bytes

Versions: 6

Compression:

Stored size: 287 Bytes

Contents

module ActionDispatch::Routing
  class Mapper
    def mount_ponytail
      resources :migrations, only: [:index, :new, :create], module: :ponytail, path: 'rails/migrations' do
        collection do
          post :migrate
          post :rollback
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ponytail-0.2.0 lib/rails/mapper.rb
ponytail-0.1.0 lib/rails/mapper.rb
ponytail-0.0.5 lib/rails/mapper.rb
ponytail-0.0.4 lib/rails/mapper.rb
ponytail-0.0.3 lib/rails/mapper.rb
ponytail-0.0.2 lib/rails/mapper.rb