KyivKrishnaAcademy/ved_akadem_students

View on GitHub
app/controllers/ui/group_elders_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module Ui
  class GroupEldersController < Ui::BaseController
    before_action :authorize_person

    def group_admins_index
      respond_with_interaction Ui::GroupAdminsLoadingInteraction
    end

    def group_curators_index
      respond_with_interaction Ui::GroupCuratorsLoadingInteraction
    end

    def group_praepostors_index
      respond_with_interaction Ui::GroupPraepostorsLoadingInteraction
    end

    private

    def authorize_person
      authorize Person
    end
  end
end