From 8d088109ccdf82b7c5c84122c4e01bbb715d56bf Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Sat, 10 Feb 2018 22:38:21 +0200 Subject: [PATCH] Hide methods #697 --- app/controllers/epp/polls_controller.rb | 4 ++-- doc/controllers_complete.svg | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/controllers/epp/polls_controller.rb b/app/controllers/epp/polls_controller.rb index fb032975f..44f8afdc1 100644 --- a/app/controllers/epp/polls_controller.rb +++ b/app/controllers/epp/polls_controller.rb @@ -6,6 +6,8 @@ class Epp::PollsController < EppController ack_poll if params[:parsed_frame].css('poll').first['op'] == 'ack' end + private + def req_poll @message = current_user.queued_messages.last @@ -49,8 +51,6 @@ class Epp::PollsController < EppController render_epp_response 'epp/poll/poll_ack' end - private - def validate_poll requires_attribute 'poll', 'op', values: %(ack req), allow_blank: true end diff --git a/doc/controllers_complete.svg b/doc/controllers_complete.svg index 61ca0ec5f..e5682f236 100644 --- a/doc/controllers_complete.svg +++ b/doc/controllers_complete.svg @@ -87,9 +87,7 @@ Epp::PollsController -ack_poll poll -req_poll _layout