From 0ed6a00337257b951032d000ad6ce1ab61564792 Mon Sep 17 00:00:00 2001 From: Miha Rekar Date: Sat, 11 Nov 2023 21:11:25 +0100 Subject: [PATCH] =?UTF-8?q?Everyone=20has=20premium=20this=20weekend=20?= =?UTF-8?q?=F0=9F=A5=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/user.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/models/user.rb b/app/models/user.rb index 2a5571db..7f63ece5 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -37,7 +37,11 @@ def chart_settings end def premium? - premium_expires_at&.future? || supporter + visualizer_was_down_sadface || premium_expires_at&.future? || supporter + end + + def visualizer_was_down_sadface + Time.current < Time.utc(2023, 11, 13) end def wants_fahrenheit?