Unit support for domain creating

This commit is contained in:
Martin Lensment 2014-08-12 15:19:17 +03:00
parent 2220846b9f
commit cb2a5f0723
5 changed files with 49 additions and 9 deletions

View file

@ -20,6 +20,10 @@ module Epp::Common
@params_hash ||= Hash.from_xml(params[:frame]).with_indifferent_access
end
def parsed_frame
@parsed_frame ||= Nokogiri::XML(params[:frame]).remove_namespaces!
end
def epp_session
EppSession.find_or_initialize_by(session_id: cookies['session'])
end