Skip to content

Conversation

google-labs-jules[bot]
Copy link
Contributor

@google-labs-jules google-labs-jules bot commented Aug 31, 2025

Fix #1397 ?

This change refactors the views to no longer access environment variables directly. A new helper method site_name is introduced to provide the site name, which is read from the GROWSTUFF_SITE_NAME environment variable. This makes the code cleaner and centralizes the logic for accessing this configuration value.

…ead from a helper or similar central area.

A new helper method `site_name` was created in `app/helpers/application_helper.rb` to provide the value of `ENV['GROWSTUFF_SITE_NAME']`.

All occurrences of `ENV['GROWSTUFF_SITE_NAME']` in the `app/views` directory have been replaced with a call to the new `site_name` helper method.

The `ApplicationHelper` has been included in the `ApplicationMailer` to make the `site_name` helper available to mailer views.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ENV variable cleanup needed
0 participants