Skip to content

Commit

Permalink
Merge pull request #1176 from bbranan/1174-contact-form-email-variable
Browse files Browse the repository at this point in the history
Allows contact form email address to be set via an environment variable
  • Loading branch information
mjgiarlo committed May 31, 2017
2 parents 7d97226 + 361dc36 commit a52d3af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/initializers/hyrax.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
config.register_curation_concern :image

# Email recipient of messages sent via the contact form
# config.contact_email = "repo-admin@example.org"
config.contact_email = Settings.contact_email

# Text prefacing the subject entered in the contact form
# config.subject_prefix = "Contact form:"
Expand Down
4 changes: 3 additions & 1 deletion config/settings.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# These settings can also be provided as environment variables, in the form, e.g.:
# SETTING__ACTIVE_JOB_QUEUE__URL=http://...
# SETTINGS__ACTIVE_JOB_QUEUE__URL=http://...
#
# The mapping is described in `./config/initializers/config.rb`.
#
Expand Down Expand Up @@ -54,3 +54,5 @@ google_analytics_id:

# Register here: http://www.geonames.org/manageaccount
geonames_username: 'jcoyne'

contact_email: ""

0 comments on commit a52d3af

Please sign in to comment.