Commit 5be306c8218e5ceac99729dc7a63257ff791884e
1 parent
aef06801
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
avoid double render
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
plugins/notification/controllers/notification_plugin_profile_controller.rb
| ... | ... | @@ -12,8 +12,9 @@ class NotificationPluginProfileController < ProfileController |
| 12 | 12 | |
| 13 | 13 | if request.xhr? |
| 14 | 14 | render :partial => 'event', :collection => @events |
| 15 | + else | |
| 16 | + render :file => 'notification_plugin_profile/lobby_notes', :layout => 'embed' | |
| 15 | 17 | end |
| 16 | - render :file => 'notification_plugin_profile/lobby_notes', :layout => 'embed' | |
| 17 | 18 | end |
| 18 | 19 | |
| 19 | 20 | def index | ... | ... |