Class: ActionDispatch::Routing::Mapper

Inherits:
Object
  • Object
show all
Defined in:
lib/rails/mapper.rb

Instance Method Summary collapse

Instance Method Details

#mount_ponytailObject



3
4
5
6
7
8
9
10
# File 'lib/rails/mapper.rb', line 3

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