Rubocop upgraded #2711

This commit is contained in:
Priit Tark 2015-06-26 18:19:36 +03:00
parent 59c73fca9e
commit 7530d6ecab
33 changed files with 115 additions and 91 deletions

View file

@ -7,6 +7,7 @@ class Epp::SessionsController < EppController
# rubocop: disable Metrics/PerceivedComplexity
# rubocop: disable Metrics/CyclomaticComplexity
# rubocop: disable Metrics/AbcSize
def login
cert_valid = true
@api_user = ApiUser.find_by(login_params)
@ -33,6 +34,9 @@ class Epp::SessionsController < EppController
render_epp_response('login_fail')
end
end
# rubocop: enable Metrics/AbcSize
# rubocop: enable Metrics/PerceivedComplexity
# rubocop: enable Metrics/CyclomaticComplexity
def ip_white?
return true if request.ip == ENV['webclient_ip']
@ -58,9 +62,6 @@ class Epp::SessionsController < EppController
true
end
# rubocop: enable Metrics/PerceivedComplexity
# rubocop: enable Metrics/CyclomaticComplexity
def logout
@api_user = current_user # cache current_user for logging
epp_session.destroy