class Query::NameDescriptionByEditor < Query::NameDescription
  def parameter_declarations
    super.merge(
      user: User
    )
  end

  def initialize_flavor
    user = find_cached_parameter_instance(User, :user)
    title_args[:user] = user.legal_name

    glue_table = "name_decriptions_editors".to_sym
    add_join(glue_table)
    self.where << "#{glue_table}.user_id = '#{params[:user]}'"
    super
  end

  def default_order
    "name"
  end
end

Fix accidentally overwritten file & add some NameDescription subqueries
Fix accidentally overwritten file
& add some NameDescription subqueries

I overwrote:
 name_description_by_edittor
with
 name_with_descriptions_by_editor
