From 0bd4d42d2d7d87f4123ce2df4ee4bae6ed9f8c0b Mon Sep 17 00:00:00 2001 From: shane tully Date: Sun, 1 May 2016 16:19:46 -0700 Subject: [PATCH] add option to splashpage for it to be shown by default when viewing the conferences index --- app/controllers/conference_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/conference_controller.rb b/app/controllers/conference_controller.rb index fb75810aab..dd32836621 100644 --- a/app/controllers/conference_controller.rb +++ b/app/controllers/conference_controller.rb @@ -9,7 +9,7 @@ def index @antiquated = @conferences - @current # If one of the current conferences is set to be shown by default, redirect to it - default_splashpage = Splashpage.find_by show_by_default: true + default_splashpage = Splashpage.find_by show_by_default: true, public: true return unless default_splashpage redirect_to conference_path(default_splashpage.conference.short_title)