Sha256: a4b72fdd90fd550bded454948d455bb75c32593ab167b1b4248d4f4ae6e32e72

Contents?: true

Size: 379 Bytes

Versions: 3

Compression:

Stored size: 379 Bytes

Contents

Rails.application.routes.draw do

  mount Lockup::Engine, :at => '/lockup', :as => 'lockup'

  resources :posts, :only => [:index, :show]

  # this makes tests fail with endless redirect loop b/c it is before lockup routes
  # catch all route b/c Rails `rescue_from` doesn't catch ActionController::RoutingError
  match '*path', :via => :all, :to => 'application#render_404'
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lockup-1.3.0 spec/dummy/config/routes.rb
lockup-1.2.1 spec/dummy/config/routes.rb
lockup-1.2.0 spec/dummy/config/routes.rb