Merge branch 'master' into refactor-messages

# Conflicts:
#	app/controllers/epp/polls_controller.rb
#	test/fixtures/messages.yml
#	test/integration/epp/poll_test.rb
#	test/models/message_test.rb
This commit is contained in:
Artur Beljajev 2018-09-17 13:30:25 +03:00
commit 52feefeb79
3 changed files with 2 additions and 20 deletions

View file

@ -9,7 +9,7 @@ class Epp::PollsController < EppController
private
def req_poll
@notification = current_user.unread_notifications.last
@notification = current_user.unread_notifications.order('created_at DESC').take
render_epp_response 'epp/poll/poll_no_messages' and return unless @notification
if @notification.attached_obj_type && @notification.attached_obj_id