config/routes.rb in workarea-shipping_message-1.2.0 vs config/routes.rb in workarea-shipping_message-1.2.1

- old
+ new

@@ -1,11 +1,13 @@ Workarea::Admin::Engine.routes.draw do - namespace :shipping_message do - resource :settings, only: [:edit, :update] - end + scope '(:locale)', constraints: Workarea::I18n.routes_constraint do + namespace :shipping_message do + resource :settings, only: [:edit, :update] + end - resources :pricing_discounts, except: [:new, :create] do - member do - get :message + resources :pricing_discounts, except: [:new, :create] do + member do + get :message + end end end end