Poll showing, dequeueing, tests

This commit is contained in:
Martin Lensment 2014-11-07 14:21:13 +02:00
parent 6888cd15a4
commit 3bc7385caf
9 changed files with 216 additions and 9 deletions

View file

@ -2,6 +2,7 @@ class Epp::CommandsController < ApplicationController
include Epp::Common
include Epp::DomainsHelper
include Epp::ContactsHelper
include Epp::PollHelper
include Shared::UserStamper
helper WhodunnitHelper
@ -9,14 +10,6 @@ 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