From 6ce06ddbf6935ae5e71c5c21d7e5c165e0856add Mon Sep 17 00:00:00 2001 From: Andrew Radev Date: Sun, 12 Jul 2015 10:28:24 +0300 Subject: [PATCH] Don't break when there's no slug --- app/controllers/management/management_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/management/management_controller.rb b/app/controllers/management/management_controller.rb index 3cbf159..79eb37d 100644 --- a/app/controllers/management/management_controller.rb +++ b/app/controllers/management/management_controller.rb @@ -7,7 +7,7 @@ module Management private def default_url_options(options = {}) - { current_conference: current_conference.slug }.merge(options) + { current_conference: current_conference.try(:slug) }.merge(options) end def current_conference?