module BeanstalkApi class TasksController < BeanstalkApi::ApplicationController before_filter :beanstalk_running respond_to :json def overall_statistics render json: pool.stats end end end