From 9f5d22f5f0d276133c16a879a5d165d130da8865 Mon Sep 17 00:00:00 2001 From: Chris Oliver Date: Fri, 20 Oct 2023 20:22:36 -0500 Subject: [PATCH] Standardize to Ruby 3.0 --- .standard.yml | 1 + lib/noticed/model.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.standard.yml b/.standard.yml index f1b942c7..3c6e1900 100644 --- a/.standard.yml +++ b/.standard.yml @@ -1,3 +1,4 @@ +ruby_version: 3.0 ignore: - '**/*': - Style/HashSyntax diff --git a/lib/noticed/model.rb b/lib/noticed/model.rb index d4632e3f..d14ad6e5 100644 --- a/lib/noticed/model.rb +++ b/lib/noticed/model.rb @@ -54,7 +54,7 @@ def noticed_coder # Rehydrate the database notification into the Notification object for rendering def to_notifier - @_notifier||= begin + @_notifier ||= begin instance = type.constantize.with(params) instance.record = self instance.recipient = recipient