Don't break when there's no slug

This commit is contained in:
Andrew Radev 2015-07-12 10:28:24 +03:00
parent fb7c39315a
commit 6ce06ddbf6
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ module Management
private private
def default_url_options(options = {}) def default_url_options(options = {})
{ current_conference: current_conference.slug }.merge(options) { current_conference: current_conference.try(:slug) }.merge(options)
end end
def current_conference? def current_conference?