class StatisticsFilterJsonPresenter < DocumentFilterPresenter
  def result_type
    "statistic"
  end
end

class StatisticsFilterJsonPresenter < DocumentFilterPresenter
  def as_json(options = nil)
    super.merge atom_feed_url: context.filter_atom_feed_url,
                email_signup_url: context.new_email_signups_path(email_signup: { feed: context.filter_atom_feed_url })
  end

  def result_type
    "statistic"
  end
end

Set the atom and email URLs for the statistics filter
Set the atom and email URLs for the statistics filter
