From 076484b6b05b2ed5073a0ef112fbb59176de578d Mon Sep 17 00:00:00 2001 From: Jon Kirwan <87758239+jon-kirwan@users.noreply.github.com> Date: Fri, 11 Aug 2023 15:30:08 +0100 Subject: [PATCH] Update content_item.rb --- app/models/content_item.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/content_item.rb b/app/models/content_item.rb index 9253dbc896..e471491349 100644 --- a/app/models/content_item.rb +++ b/app/models/content_item.rb @@ -46,6 +46,10 @@ def filter content_item_hash.dig("details", "filter") || {} end + def open_on_load + content_item_hash.dig("details", "open_on_load") || "" + end + def reject content_item_hash.dig("details", "reject") || {} end