Keyrelays index

This commit is contained in:
Martin Lensment 2014-12-22 16:53:30 +02:00
parent f8ef86dcd5
commit 71df97f553
8 changed files with 58 additions and 4 deletions

View file

@ -12,8 +12,6 @@ module Epp::KeyrelayHelper
render '/epp/shared/success'
end
# rubocop: enable Metrics/PerceivedComplexity
# rubocop: enable Metrics/CyclomaticComplexity
private
@ -46,6 +44,9 @@ module Epp::KeyrelayHelper
epp_errors.empty?
end
# rubocop: enable Metrics/PerceivedComplexity
# rubocop: enable Metrics/CyclomaticComplexity
def find_domain_for_keyrelay
domain_name = parsed_frame.css('name').text.strip.downcase
domain = Epp::EppDomain.find_by(name: domain_name)