Don't break when there's no slug
This commit is contained in:
parent
fb7c39315a
commit
6ce06ddbf6
|
@ -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?
|
||||||
|
|
Loading…
Reference in New Issue