
json.issues @links.each do |link|
  if @issue.id == link.be_linkable_id
    json.partial! "api/v1/issues/simple_detail", locals: { issue: link.linkable }
  else
    json.partial! "api/v1/issues/simple_detail", locals: { issue: link.be_linkable }
  end
end