Is there a way to conditionally set options for a method?
Something like...
article_url(@article, :host => 'myblog.com' if @user.custom_domain?)
So in that case...only setting host
if the user has a certain option set for their account.
Is there a way to conditionally set options for a method?
Something like...
article_url(@article, :host => 'myblog.com' if @user.custom_domain?)
So in that case...only setting host
if the user has a certain option set for their account.