config/routes.rb in guts-1.4.0 vs config/routes.rb in guts-2.0.0

- old
+ new

@@ -1,10 +1,15 @@ Guts::Engine.routes.draw do # Master concerns... everything can have a metafield and file attached to it concern(:fieldable) { |opts| resources :metafields, opts } concern(:filable) { |opts| resources :media, opts } - concern(:permissionable) { |opts| resources :permissions, { only: [:index, :destroy, :create, :new]}.merge(opts) } + concern(:permissionable) do |opts| + resources :permissions, { only: [:index, :destroy, :create, :new] }.merge(opts) do + get '/additional', action: :additional, on: :collection + post '/additional', action: :additional_create, on: :collection + end + end # Resources and routes get '/', to: 'index#index' # Home @@ -86,9 +91,6 @@ get :logout, to: 'sessions#destroy', as: :destroy_session get :forgot, to: 'sessions#forgot', as: :forgot_session post :forgot_token, to: 'sessions#forgot_token', as: :forgot_token_session get '/reset_password/:token', to: 'sessions#reset_password', as: :reset_password_session end - - # Tracker/Log - get :trackers, to: 'trackers#index' end