Remove test logic

#700
This commit is contained in:
Artur Beljajev 2018-02-07 01:10:45 +02:00
parent d5b96060e0
commit 82c74a4811

View file

@ -114,7 +114,6 @@ class Epp::SessionsController < EppController
end
def connection_limit_ok?
return true if Rails.env.test? || Rails.env.development?
c = EppSession.where(
'registrar_id = ? AND updated_at >= ?', @api_user.registrar_id, Time.zone.now - 1.second
).count