• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pulibrary / tigerdata-app / 3d88d2e1-809d-4b21-a053-6167ddb1e670

06 Nov 2025 03:55PM UTC coverage: 91.201% (+10.5%) from 80.673%
3d88d2e1-809d-4b21-a053-6167ddb1e670

push

circleci

web-flow
Fixed link, replaced image, added a test (#2158)

Closes #2156 and #2141

2840 of 3114 relevant lines covered (91.2%)

1092.36 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

90.0
/app/controllers/dashboard_controller.rb
1
# frozen_string_literal: true
2
class DashboardController < ApplicationController
4✔
3
  layout "welcome"
4✔
4

5
  def index
4✔
6
    @presenter = DashboardPresenter.new(current_user: current_user)
150✔
7

8
    session[:dashtab] ||= "project" # default the session tab to projects
150✔
9
    @dash_session = session[:dashtab]
150✔
10
    @session_id = current_user.mediaflux_session
150✔
11
    @emulation_role = session[:emulation_role] || "Not Emulating"
150✔
12
  end
13

14
  def emulate
4✔
15
    return if Rails.env.production?
6✔
16

17
    absolute_user = User.find(current_user.id)
6✔
18
    return unless absolute_user.trainer?
6✔
19

20
    if params.key?("emulation_menu")
6✔
21
      session[:emulation_role] = params[:emulation_menu]
6✔
22
    end
23
  end
24

25
  def dash_project
4✔
26
    if params.key?("dashtab")
×
27
      session[:dashtab] = params[:dashtab]
×
28
    end
29
  end
30

31
  def dash_admin
4✔
32
    if params.key?("dashtab")
4✔
33
      session[:dashtab] = params[:dashtab]
4✔
34
    end
35
  end
36
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc