diaspora/app/controllers/statistics_controller.rb
2015-01-24 22:34:41 +01:00

16 lines
No EOL
498 B
Ruby

# Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.
class StatisticsController < ApplicationController
respond_to :html, :json
use_bootstrap_for :statistics
def statistics
@statistics = StatisticsPresenter.new
respond_to do |format|
format.json { render json: @statistics }
format.any(:html, :mobile) { render 'statistics/statistics.html.haml' }
end
end
end