Sha256: 21ac94f0130718e11347d5b7f0058444e43db1f2559851cd8679197fd7c7d6a9

Contents?: true

Size: 442 Bytes

Versions: 9

Compression:

Stored size: 442 Bytes

Contents

class Manage::CheckinsController < Manage::ApplicationController
  before_action :set_questionnaire, only: [:show]

  respond_to :html, :json

  def index
    respond_with(:manage, Questionnaire.all)
  end

  def datatable
    render json: CheckinDatatable.new(view_context)
  end

  def show
    respond_with(:manage, @questionnaire)
  end

  private

  def set_questionnaire
    @questionnaire = ::Questionnaire.find(params[:id])
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
hackathon_manager-0.14.1 app/controllers/manage/checkins_controller.rb
hackathon_manager-0.14.0 app/controllers/manage/checkins_controller.rb
hackathon_manager-0.13.12 app/controllers/manage/checkins_controller.rb
hackathon_manager-0.13.11 app/controllers/manage/checkins_controller.rb
hackathon_manager-0.13.10 app/controllers/manage/checkins_controller.rb
hackathon_manager-0.13.9 app/controllers/manage/checkins_controller.rb
hackathon_manager-0.13.8 app/controllers/manage/checkins_controller.rb
hackathon_manager-0.13.7 app/controllers/manage/checkins_controller.rb
hackathon_manager-0.13.6 app/controllers/manage/checkins_controller.rb