mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 16:53:37 +02:00
Basic poll implementation
This commit is contained in:
parent
c0edfd4b5b
commit
6888cd15a4
13 changed files with 82 additions and 21 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue