Basic poll implementation

This commit is contained in:
Martin Lensment 2014-11-06 13:51:28 +02:00
parent c0edfd4b5b
commit 6888cd15a4
13 changed files with 82 additions and 21 deletions

View file

@ -9,6 +9,14 @@ class Epp::CommandsController < ApplicationController
private
def poll
@message = current_epp_user.registrar.messages.last
if @message.attached_obj_type && @message.attached_obj_id
@object = Object.const_get(@message.attached_obj_type).find(@message.attached_obj_id)
end
render 'epp/poll'
end
def create
send("create_#{OBJECT_TYPES[params_hash['epp']['xmlns:ns2']]}")
end