mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 06:34:46 +02:00
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:
commit
52feefeb79
3 changed files with 2 additions and 20 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue