Conditions | 4 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | # frozen_string_literal: true |
||
30 | def get_value(name) |
||
31 | feature = features.find_or_create_by!(name: name) |
||
32 | if feature[:enabled] |
||
33 | feature[:value] |
||
34 | else |
||
35 | case name |
||
36 | when "Branding Image" |
||
37 | Rails.configuration.branding_image_default |
||
38 | when "Primary Color" |
||
39 | Rails.configuration.primary_color_default |
||
40 | end |
||
41 | end |
||
42 | end |
||
43 | end |
||
44 |