Sha256: 4b8711ddef381783cae143524aac863f291f82ab1847441de1924cdff99af140

Contents?: true

Size: 468 Bytes

Versions: 1

Compression:

Stored size: 468 Bytes

Contents

module Applicants
  class Panels::StatisticsController < Applicants::ApplicationController
    layout 'applicants/application'

    def show
      panel = Applicants::Panel.where(remote_panel_id: params[:panel_id]).first

      if panel
        respond_to do |format|
          format.json { render json: panel.statistics.as_json }
        end
      else
        respond_to do |format|
          format.json { head :not_found }
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
applicants-0.11.0 app/controllers/applicants/panels/statistics_controller.rb