Sha256: eb43efd0c9324bae5df6b183975cc1e3e2e10f14c1b4ff25e30331e5a732ba71

Contents?: true

Size: 434 Bytes

Versions: 27

Compression:

Stored size: 434 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
        render locals: { query: query.search, sessions: sessions }
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
renalware-core-2.0.16 app/controllers/renalware/hd/ongoing_sessions_controller.rb
renalware-core-2.0.15 app/controllers/renalware/hd/ongoing_sessions_controller.rb
renalware-core-2.0.14 app/controllers/renalware/hd/ongoing_sessions_controller.rb
renalware-core-2.0.13 app/controllers/renalware/hd/ongoing_sessions_controller.rb
renalware-core-2.0.12 app/controllers/renalware/hd/ongoing_sessions_controller.rb
renalware-core-2.0.11 app/controllers/renalware/hd/ongoing_sessions_controller.rb
renalware-core-2.0.9 app/controllers/renalware/hd/ongoing_sessions_controller.rb
renalware-core-2.0.8 app/controllers/renalware/hd/ongoing_sessions_controller.rb
renalware-core-2.0.7 app/controllers/renalware/hd/ongoing_sessions_controller.rb
renalware-core-2.0.5 app/controllers/renalware/hd/ongoing_sessions_controller.rb
renalware-core-2.0.4 app/controllers/renalware/hd/ongoing_sessions_controller.rb
renalware-core-2.0.3 app/controllers/renalware/hd/ongoing_sessions_controller.rb
renalware-core-2.0.2 app/controllers/renalware/hd/ongoing_sessions_controller.rb
renalware-core-2.0.1 app/controllers/renalware/hd/ongoing_sessions_controller.rb
renalware-core-2.0.0 app/controllers/renalware/hd/ongoing_sessions_controller.rb
renalware-core-2.0.0.pre.rc13 app/controllers/renalware/hd/ongoing_sessions_controller.rb
renalware-core-2.0.0.pre.rc11 app/controllers/renalware/hd/ongoing_sessions_controller.rb
renalware-core-2.0.0.pre.rc10 app/controllers/renalware/hd/ongoing_sessions_controller.rb
renalware-core-2.0.0.pre.rc9 app/controllers/renalware/hd/ongoing_sessions_controller.rb
renalware-core-2.0.0.pre.rc8 app/controllers/renalware/hd/ongoing_sessions_controller.rb