Browse Source

Use notifiable type as a scope for partial names

Chris Oliver 7 years ago
parent
commit
18ed1676bf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/views/notifications/index.html.erb

+ 1 - 1
app/views/notifications/index.html.erb

@@ -2,6 +2,6 @@
 
 <ul>
   <% @notifications.each do |notification| %>
-    <li><%= render "#{notification.action}_to_current_user", actor: notification.actor, notifiable: notification.notifiable  %></li>
+    <li><%= render "notifications/#{notification.notifiable_type.underscore}/#{notification.action.underscore}", actor: notification.actor, notifiable: notification.notifiable  %></li>
   <% end %>
 </ul>