Domain xsd + enable validation

This commit is contained in:
Martin Lensment 2014-07-03 18:17:00 +03:00
parent 48710b41f7
commit 1f468352c8
3 changed files with 449 additions and 13 deletions

View file

@ -3,11 +3,6 @@ class Epp::CommandsController < ApplicationController
include Epp::DomainsHelper
include Epp::ContactsHelper
OBJECT_TYPES = {
'urn:ietf:params:xml:ns:contact-1.0' => 'contact',
'urn:ietf:params:xml:ns:domain-1.0' => 'domain'
}
private
def create
send("create_#{OBJECT_TYPES[params_hash['epp']['xmlns:ns2']]}")