From 02027a3dd0709ebc0ce0dc768219c8908dbacd6e Mon Sep 17 00:00:00 2001 From: Alex Ghiculescu Date: Sat, 7 Sep 2024 00:01:29 +1000 Subject: [PATCH] Include routes and `Noticed::Translation` in `Noticed::Ephemeral` (#485) * Include `Noticed::Translation` in `Noticed::Ephemeral` Ooops, I should have included this in https://github.com/excid3/noticed/pull/484, sorry. * Update ephemeral.rb --- app/models/noticed/ephemeral.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/models/noticed/ephemeral.rb b/app/models/noticed/ephemeral.rb index 283b56a..4eb6811 100644 --- a/app/models/noticed/ephemeral.rb +++ b/app/models/noticed/ephemeral.rb @@ -3,6 +3,8 @@ class Ephemeral include ActiveModel::Model include ActiveModel::Attributes include Noticed::Deliverable + include Noticed::Translation + include Rails.application.routes.url_helpers attribute :record attribute :params, default: {} @@ -11,6 +13,7 @@ class Notification include ActiveModel::Model include ActiveModel::Attributes include Noticed::Translation + include Rails.application.routes.url_helpers attribute :recipient attribute :event