class PaperSerializer < ActiveModel::Serializer
  attributes :id, :user_permisions, :location, :state, :submitted_at, :title, :version, :created_at, :pending_issues_count
  belongs_to :user

  def user_permisions
    if current_user
      object.permisions_for_user current_user
    else
      []
    end
  end

  def pending_issues_count
    object.outstanding_issues.count
  end

end

class PaperSerializer < ActiveModel::Serializer
  attributes :id, :user_permisions, :location, :state, :submitted_at, :title, :version, :created_at, :pending_issues_count
  has_one :user

  def user_permisions
    if current_user
      object.permisions_for_user current_user
    else
      []
    end
  end

  def pending_issues_count
    object.outstanding_issues.count
  end

end

Fix the serializer to return the submitting user with a paper, this should probably be extended in to a number of users who have recognized roles on the paper
Fix the serializer to return the submitting user with a paper, this should probably be extended in to a number of users who have recognized roles on the paper 