Class: WebConsole::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/web_console/railtie.rb

Instance Method Summary collapse

Instance Method Details

#web_console_permissionsObject



63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'lib/web_console/railtie.rb', line 63

def web_console_permissions
  case
  when config.web_console.permissions
    config.web_console.permissions
  when config.web_console.allowed_ips
    config.web_console.allowed_ips
  when config.web_console.whitelisted_ips
    WebConsole.deprecator.warn(<<-MSG.squish)
      The config.web_console.whitelisted_ips is deprecated and will be ignored in future release of web_console.
      Please use config.web_console.allowed_ips instead.
    MSG
    config.web_console.whitelisted_ips
  end
end