mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
Poll showing, dequeueing, tests
This commit is contained in:
parent
6888cd15a4
commit
3bc7385caf
9 changed files with 216 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue