KyivKrishnaAcademy/ved_akadem_students

View on GitHub
app/interactions/ui/person_class_schedules_loading_interaction.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module Ui
  class PersonClassSchedulesLoadingInteraction < BaseInteraction
    include ClassSchedulesLoadable

    def init
      # TODO: replace this when ElasticSearch appears
      # TODO: injection is possible!
      @class_schedules = ClassScheduleWithPeople.personal_schedule_by_direction(
        user.id,
        params[:page],
        params[:direction]
      )
    end
  end
end