Skip to content

Commit 06c7607

Browse files
committed
Updated org settings to env variables
1 parent 966efca commit 06c7607

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

config/application.rb

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -79,29 +79,29 @@ class Application < Rails::Application
7979
# --------------------- #
8080

8181
# Your organisation name, used in various places throught the application
82-
config.x.organisation.name = 'Curation Center'
82+
config.x.organisation.name = ENV['ORGANISATION_NAME']
8383
# Your organisation's abbreviation
84-
config.x.organisation.abbreviation = 'CC'
84+
config.x.organisation.abbreviation = ENV['ORGANISATION_ABBREVIATION']
8585
# Your organisation's homepage, used in some of the public facing pages
86-
config.x.organisation.url = 'https://github.com/DMPRoadmap/roadmap/wiki'
86+
config.x.organisation.url = ENV['ORGANISATION_URL']
8787
# Your organisation's legal (official) name - used in the copyright portion of the footer
88-
config.x.organisation.copywrite_name = 'Curation Centre (CC)'
88+
config.x.organisation.copywrite_name = ENV['ORGANISATION_COPYWRITE_NAME']
8989
# This email is used as the 'from' address for emails generated by the application
90-
config.x.organisation.email = 'tester@example.org'
90+
config.x.organisation.email = ENV['ORGANISATION_EMAIL']
9191
# This email is used as the 'from' address for the feedback_complete email to users
92-
config.x.organisation.do_not_reply_email 'do-not-reply@cc_curation_centre.org'
92+
config.x.organisation.do_not_reply_email = ENV['ORGANISATION_DO_NOT_REPLY_EMAIL']
9393
# This email is used in email communications
94-
config.x.organisation.helpdesk_email = 'help@example.org'
94+
config.x.organisation.helpdesk_email = ENV['ORGANISATION_HELPDESK_EMAIL']
9595
# Your organisation's telephone number - used on the contact us page
96-
config.x.organisation.telephone = '+1-123-123-1234'
96+
config.x.organisation.telephone = ENV['ORGANISATION_TELEPHONE']
9797
# Your organisation's address - used on the contact us page
9898
# rubocop:disable Naming/VariableNumber
9999
config.x.organisation.address = {
100-
line_1: 'Princess Elisabeth Station',
101-
line_2: '123 Freezing Cold Street',
102-
line_3: 'Suite 123',
103-
line_4: 'Polar Vortex, ABC-345',
104-
country: 'Antarctica'
100+
line_1: ENV['ORGANISATION_ADDRESS_LINE_1'],
101+
line_2: ENV['ORGANISATION_ADDRESS_LINE_2'],
102+
line_3: ENV['ORGANISATION_ADDRESS_LINE_3'],
103+
line_4: ENV['ORGANISATION_ADDRESS_LINE_4'],
104+
country: ENV['ORGANISATION_ADDRESS_COUNTRY']
105105
}
106106
# rubocop:enable Naming/VariableNumber
107107

@@ -112,7 +112,7 @@ class Application < Rails::Application
112112
# once the menu opens, click the 'share or embed' link and the 'embed' tab on
113113
# the dialog window that opens. DO NOT place the entire <iframe> tag below, just
114114
# the address!
115-
config.x.organisation.google_maps_link = 'https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d29046286.09795864!2d-34.22768319424708!3d-63.61874004304689!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0xb57520cc078b16a9!2sPrincess%20Elisabeth%20Station!5e0!3m2!1sen!2sus!4v1587495708129!5m2!1sen!2sus'
115+
config.x.organisation.google_maps_link = ENV['ORGANISATION_GOOGLE_MAPS_LINK']
116116

117117
# Uncomment the following line if you want to redirect your users to an
118118
# organisational contact/help page instead of using the built-in contact_us form

0 commit comments

Comments
 (0)