From 5be306c8218e5ceac99729dc7a63257ff791884e Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Wed, 20 Aug 2014 11:15:04 -0300 Subject: [PATCH] avoid double render --- plugins/notification/controllers/notification_plugin_profile_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/notification/controllers/notification_plugin_profile_controller.rb b/plugins/notification/controllers/notification_plugin_profile_controller.rb index 95cb5d8..80c5804 100644 --- a/plugins/notification/controllers/notification_plugin_profile_controller.rb +++ b/plugins/notification/controllers/notification_plugin_profile_controller.rb @@ -12,8 +12,9 @@ class NotificationPluginProfileController < ProfileController if request.xhr? render :partial => 'event', :collection => @events + else + render :file => 'notification_plugin_profile/lobby_notes', :layout => 'embed' end - render :file => 'notification_plugin_profile/lobby_notes', :layout => 'embed' end def index -- libgit2 0.21.2