Add render method to notification item component
This commit is contained in:
@@ -5,6 +5,10 @@ class Layout::NotificationItemComponent < ApplicationComponent
|
||||
@user = user
|
||||
end
|
||||
|
||||
def render?
|
||||
user.present?
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def text
|
||||
|
||||
Reference in New Issue
Block a user