config/routes.rb in calagator2-2.0.0 vs config/routes.rb in calagator2-2.1.0

- old
+ new

@@ -1,27 +1,27 @@ # frozen_string_literal: true Calagator::Engine.routes.draw do - get 'omfg' => 'site#omfg' - get 'hello' => 'site#hello' + get "omfg" => "site#omfg" + get "hello" => "site#hello" - get 'about' => 'site#about' + get "about" => "site#about" - get 'opensearch.:format' => 'site#opensearch' - get 'defunct' => 'site#defunct' + get "opensearch.:format" => "site#opensearch" + get "defunct" => "site#defunct" - get 'admin' => 'admin#index' - get 'admin/index' - get 'admin/events' - post 'lock_event' => 'admin#lock_event' + get "admin" => "admin#index" + get "admin/index" + get "admin/events" + post "lock_event" => "admin#lock_event" resources :events do collection do post :squash_many_duplicates get :search get :duplicates - get 'tag/:tag', action: :search, as: :tag + get "tag/:tag", action: :search, as: :tag end member do get :clone end @@ -37,22 +37,22 @@ collection do post :squash_many_duplicates get :map get :duplicates get :autocomplete - get 'tag/:tag', action: :index, as: :tag + get "tag/:tag", action: :index, as: :tag end end resources :versions, only: [:edit] - 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 "recent_changes" => redirect("/changes") + get "recent_changes.:format" => redirect("/changes.%{format}") - get 'css/:name' => 'site#style' - get 'css/:name.:format' => 'site#style' + get "css/:name" => "site#style" + get "css/:name.:format" => "site#style" - get '/' => 'site#index', :as => :root - get '/index' => 'site#index' - get '/index.:format' => 'site#index' + get "/" => "site#index", :as => :root + get "/index" => "site#index" + get "/index.:format" => "site#index" end