Sha256: 4457c1111fefa22147d6df7a7289d98d39c60c486fc2571228cf7b9f4862192b

Contents?: true

Size: 396 Bytes

Versions: 8

Compression:

Stored size: 396 Bytes

Contents

require_dependency "renalware/hd/base_controller"

module Renalware
  module HD
    class OngoingSessionsController < BaseController
      include Renalware::Concerns::Pageable

      def show
        query = Sessions::OngoingQuery.new(q: params[:q])
        @sessions = query.call.page(page).per(per_page || 15)
        authorize @sessions

        @q = query.search
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta11 app/controllers/renalware/hd/ongoing_sessions_controller.rb
renalware-core-2.0.0.pre.beta10 app/controllers/renalware/hd/ongoing_sessions_controller.rb
renalware-core-2.0.0.pre.beta9 app/controllers/renalware/hd/ongoing_sessions_controller.rb
renalware-core-2.0.0.pre.beta8 app/controllers/renalware/hd/ongoing_sessions_controller.rb
renalware-core-2.0.0.pre.beta7 app/controllers/renalware/hd/ongoing_sessions_controller.rb
renalware-core-2.0.0.pre.beta6 app/controllers/renalware/hd/ongoing_sessions_controller.rb
renalware-core-2.0.0.pre.beta5 app/controllers/renalware/hd/ongoing_sessions_controller.rb
renalware-core-2.0.0.pre.beta4 app/controllers/renalware/hd/ongoing_sessions_controller.rb