Skip to content

Commit

Permalink
refactor: use internal environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHulme committed Oct 26, 2023
1 parent b52f58c commit 48d15c6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@ def required_marker
# Returns "-development" for any other environment
# @return [String] The suffix to append to the icon name
def icon_suffix
case Rails.env
environment = Rails.env
case environment
when 'production'
''
when 'training', 'staging'
"-#{Rails.env}"
"-#{environment}"
else
'-development'
end
Expand Down

0 comments on commit 48d15c6

Please sign in to comment.