config/routes.rb in calagator-1.1.0 vs config/routes.rb in calagator-2.0.0.pre.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + Calagator::Engine.routes.draw do get 'omfg' => 'site#omfg' get 'hello' => 'site#hello' get 'about' => 'site#about' @@ -40,17 +42,10 @@ get 'tag/:tag', action: :index, as: :tag end end resources :versions, only: [:edit] - - # Rails 4.0 prevents referencing controllers outside of the Calagator namespace. - # Work around this by aliasing PaperTrailManager inside Calagator: - Calagator::PaperTrailManager ||= ::PaperTrailManager - resources :changes, controller: 'paper_trail_manager/changes' - - # In Rails 4.1+, we could use a leading slash to the controller path: - # resources :changes, controller: '/paper_trail_manager/changes' + resources :changes, controller: '/paper_trail_manager/changes' get 'recent_changes' => redirect('/changes') get 'recent_changes.:format' => redirect('/changes.%{format}') get 'css/:name' => 'site#style'