File tree 1 file changed +5
-1
lines changed
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
51
51
end
52
52
end
53
53
54
+ initializer "web_console.deprecator" do |app |
55
+ app . deprecators [ :web_console ] = ActiveSupport ::Deprecation . new ( "5.0" , "WebConsole" )
56
+ end
57
+
54
58
initializer "web_console.permissions" do
55
59
permissions = web_console_permissions
56
60
Request . permissions = Permissions . new ( permissions )
@@ -63,7 +67,7 @@ def web_console_permissions
63
67
when config . web_console . allowed_ips
64
68
config . web_console . allowed_ips
65
69
when config . web_console . whitelisted_ips
66
- ActiveSupport :: Deprecation . warn ( <<-MSG . squish )
70
+ Rails . application . deprecators [ :web_console ] . warn ( <<-MSG . squish )
67
71
The config.web_console.whitelisted_ips is deprecated and will be ignored in future release of web_console.
68
72
Please use config.web_console.allowed_ips instead.
69
73
MSG
You can’t perform that action at this time.
0 commit comments