app/helpers/notification_renderer_helper.rb in notification-renderer-1.2.2 vs app/helpers/notification_renderer_helper.rb in notification-renderer-1.2.3
- old
+ new
@@ -1,7 +1,7 @@
module NotificationRendererHelper
- def render_notification notification, renderer = NotificationRenderer.configuration.default_renderer, attribute, notifications_count
+ def render_notification notification, renderer = NotificationRenderer.configuration.default_renderer, attribute = nil, notifications_count = nil
notification.update_attributes read: true if NotificationRenderer.configuration.auto_read
render "notifications/#{notification.type}/#{renderer}", notification: notification, attribute: attribute, notifications_count: notifications_count
end
def render_notifications notifications, renderer = NotificationRenderer.configuration.default_renderer