lib/web_console/engine.rb in web-console-2.0.0.beta3 vs lib/web_console/engine.rb in web-console-2.0.0.beta4
- old
+ new
@@ -13,11 +13,11 @@
c.automount = false
c.command = nil
c.default_mount_path = '/console'
c.timeout = 0.seconds
c.term = 'xterm-color'
- c.whitelisted_ips = '127.0.0.1'
+ c.whitelisted_ips = ['127.0.0.1', '::1']
c.style = ActiveSupport::OrderedOptions.new.tap do |s|
s.colors = 'light'
s.font = 'large DejaVu Sans Mono, Liberation Mono, monospace'
end
@@ -28,9 +28,10 @@
include WebConsole::ViewHelpers
end
ActiveSupport.on_load :action_controller do
prepend_view_path File.dirname(__FILE__) + '/../action_dispatch/templates'
+ include WebConsole::ControllerHelpers
end
end
initializer 'web_console.add_default_route' do |app|
# While we don't need the route in the test environment, we define it