config/routes.rb in super_settings-1.0.2 vs config/routes.rb in super_settings-2.0.0
- old
+ new
@@ -1,9 +1,9 @@
# frozen_string_literal: true
SuperSettings::Engine.routes.draw do
controller :settings do
- if SuperSettings::Configuration.instance.controller.web_ui_enabled?
+ if SuperSettings.configuration.controller.web_ui_enabled?
get "/", action: :root, as: :root
end
get "/settings", action: :index
post "/settings", action: :update
get "/setting", action: :show