config/routes.rb in good_job-3.12.5 vs config/routes.rb in good_job-3.12.6
- old
+ new
@@ -26,19 +26,9 @@
end
resources :processes, only: %i[index]
scope :assets, controller: :assets do
- constraints(format: :css) do
- get :bootstrap, action: :bootstrap_css
- get :style, action: :style_css
- end
-
- constraints(format: :js) do
- get :bootstrap, action: :bootstrap_js
- get :chartjs, action: :chartjs_js
- get :rails_ujs, action: :rails_ujs_js
- get :es_module_shims, action: :es_module_shims_js
- get "modules/:module", action: :modules_js, as: :modules
- end
+ get "modules/:name", action: :module, as: :module_asset, constraints: { format: 'js' }
+ get "static/:name", action: :static, as: :static_asset, constraints: { format: %w[css js] }
end
end