Sha256: 1a61b5e7f796c23909ece78c93c7bf6310af40d49c11d81dfed411cfcee015fc

Contents?: true

Size: 613 Bytes

Versions: 36

Compression:

Stored size: 613 Bytes

Contents

module Inferno
  module Web
    module Controllers
      module TestSessions
        module Results
          class Index < Controller
            include Import[test_sessions_repo: 'repositories.test_sessions']

            def call(params)
              self.body =
                if params[:all] == 'true'
                  serialize(test_sessions_repo.results_for_test_session(params[:test_session_id]))
                else
                  serialize(repo.current_results_for_test_session(params[:test_session_id]))
                end
            end
          end
        end
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
inferno_core-0.3.12 lib/inferno/apps/web/controllers/test_sessions/results/index.rb
inferno_core-0.3.11 lib/inferno/apps/web/controllers/test_sessions/results/index.rb
inferno_core-0.3.10 lib/inferno/apps/web/controllers/test_sessions/results/index.rb
inferno_core-0.3.9 lib/inferno/apps/web/controllers/test_sessions/results/index.rb
inferno_core-0.3.8 lib/inferno/apps/web/controllers/test_sessions/results/index.rb
inferno_core-0.3.7 lib/inferno/apps/web/controllers/test_sessions/results/index.rb
inferno_core-0.3.6 lib/inferno/apps/web/controllers/test_sessions/results/index.rb
inferno_core-0.3.5 lib/inferno/apps/web/controllers/test_sessions/results/index.rb
inferno_core-0.3.4 lib/inferno/apps/web/controllers/test_sessions/results/index.rb
inferno_core-0.3.3 lib/inferno/apps/web/controllers/test_sessions/results/index.rb
inferno_core-0.3.2 lib/inferno/apps/web/controllers/test_sessions/results/index.rb
inferno_core-0.3.1 lib/inferno/apps/web/controllers/test_sessions/results/index.rb
inferno_core-0.3.0 lib/inferno/apps/web/controllers/test_sessions/results/index.rb
inferno_core-0.3.0.rc1 lib/inferno/apps/web/controllers/test_sessions/results/index.rb
inferno_core-0.2.0 lib/inferno/apps/web/controllers/test_sessions/results/index.rb
inferno_core-0.2.0.rc4 lib/inferno/apps/web/controllers/test_sessions/results/index.rb
inferno_core-0.2.0.rc3 lib/inferno/apps/web/controllers/test_sessions/results/index.rb
inferno_core-0.2.0.rc2 lib/inferno/apps/web/controllers/test_sessions/results/index.rb
inferno_core-0.2.0.rc1 lib/inferno/apps/web/controllers/test_sessions/results/index.rb
inferno_core-0.1.4.pre lib/inferno/apps/web/controllers/test_sessions/results/index.rb