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

calagator / calagator / 22327828090

23 Feb 2026 10:37PM UTC coverage: 95.503% (-1.8%) from 97.337%
22327828090

Pull #752

github

web-flow
Merge 609c4ef74 into 19da19ae2
Pull Request #752: Rails 7.2 Compatibility

442 of 532 branches covered (83.08%)

432 of 494 new or added lines in 51 files covered. (87.45%)

1 existing line in 1 file now uncovered.

1975 of 2068 relevant lines covered (95.5%)

1605.62 hits per line

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

0.0
/lib/theme_reader.rb
1
# frozen_string_literal: true
2

3
# = ThemeReader
4
#
5
# Returns name of the theme to use.
6

7
class ThemeReader
×
8
  def self.read
×
9
    rails_root = begin
×
NEW
10
      Rails.root
×
NEW
11
    rescue
×
NEW
12
      File.dirname(__FILE__, 2)
×
NEW
13
    end
×
14
    theme_txt = "#{rails_root}/config/theme.txt"
×
NEW
15
    if ENV["THEME"]
×
NEW
16
      ENV["THEME"]
×
17
    elsif File.exist?(theme_txt)
×
18
      File.read(theme_txt).strip
×
19
    else
×
NEW
20
      "default"
×
21
    end
×
22
  end
×
23
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

© 2026 Coveralls, Inc