File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,10 @@ class Railtie < ::Rails::Railtie
5151 end
5252 end
5353
54+ initializer "web_console.deprecator" do |app |
55+ app . deprecators [ :web_console ] = ActiveSupport ::Deprecation . new ( "5.0" , "WebConsole" )
56+ end
57+
5458 initializer "web_console.permissions" do
5559 permissions = web_console_permissions
5660 Request . permissions = Permissions . new ( permissions )
@@ -63,7 +67,7 @@ def web_console_permissions
6367 when config . web_console . allowed_ips
6468 config . web_console . allowed_ips
6569 when config . web_console . whitelisted_ips
66- ActiveSupport :: Deprecation . warn ( <<-MSG . squish )
70+ Rails . application . deprecators [ :web_console ] . warn ( <<-MSG . squish )
6771 The config.web_console.whitelisted_ips is deprecated and will be ignored in future release of web_console.
6872 Please use config.web_console.allowed_ips instead.
6973 MSG
You can’t perform that action at this time.
0 commit comments