config/routes.rb in commontator-4.11.1 vs config/routes.rb in commontator-5.0.0
- old
+ new
@@ -1,8 +1,8 @@
Commontator::Engine.routes.draw do
- resources :threads, :only => [:show] do
- resources :comments, :except => [:index, :destroy], :shallow => true do
+ resources :threads, only: [:show] do
+ resources :comments, except: [:index, :destroy], shallow: true do
member do
put 'delete'
put 'undelete'
put 'upvote'
@@ -15,10 +15,10 @@
get 'mentions' if Commontator.mentions_enabled
put 'close'
put 'reopen'
- put 'subscribe', :to => 'subscriptions#subscribe'
- put 'unsubscribe', :to => 'subscriptions#unsubscribe'
+ put 'subscribe', to: 'subscriptions#subscribe'
+ put 'unsubscribe', to: 'subscriptions#unsubscribe'
end
end
end