Improves some code format details

This commit is contained in:
decabeza
2018-10-30 18:48:53 +01:00
parent d78b1c1998
commit 747aec3506
5 changed files with 11 additions and 9 deletions

View File

@@ -36,6 +36,7 @@ class NotificationsController < ApplicationController
end
private
def linkable_resource_path(notification)
if notification.linkable_resource.is_a?(AdminNotification)
notification.linkable_resource.link || notifications_path