-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
636 additions
and
588 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) | ||
# frozen_string_literal: true | ||
|
||
require 'bundler/setup' # Set up gems listed in the Gemfile. | ||
require 'bootsnap/setup' # Speed up boot time by caching expensive operations. | ||
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) | ||
|
||
require "bundler/setup" # Set up gems listed in the Gemfile. | ||
require "bootsnap/setup" # Speed up boot time by caching expensive operations. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# frozen_string_literal: true | ||
|
||
# Load the Rails application. | ||
require_relative 'application' | ||
require_relative "application" | ||
|
||
# Initialize the Rails application. | ||
Rails.application.initialize! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
# | ||
# This file's name begins with an underscore so that it is processed first and its | ||
# values are available to all other initializers within this directory! | ||
# rubocop:disable Layout/LineLength | ||
module DMPRoadmap | ||
|
||
class Application < Rails::Application | ||
|
@@ -33,7 +34,7 @@ class Application < Rails::Application | |
# This email is used as the 'from' address for emails generated by the application | ||
config.x.organisation.email = "[email protected]" | ||
# This email is used as the 'from' address for the feedback_complete email to users | ||
config.x.organisation.do_not_reply_email 'do-not-reply@cc_curation_centre.org' | ||
config.x.organisation.do_not_reply_email "do-not-reply@cc_curation_centre.org" | ||
# This email is used in email communications | ||
config.x.organisation.helpdesk_email = "[email protected]" | ||
# Your organisation's telephone number - used on the contact us page | ||
|
@@ -181,14 +182,14 @@ class Application < Rails::Application | |
# ---------------------------------------------------- # | ||
|
||
# Determines how long to cache results for OrgSelection::SearchService | ||
config.x.cache.org_selection_expiration = 86400 | ||
config.x.cache.org_selection_expiration = 86_400 | ||
# Determines how long to cache results for the ResearchProjectsController | ||
config.x.cache.research_projects_expiration = 86400 | ||
config.x.cache.research_projects_expiration = 86_400 | ||
|
||
# ---------------- # | ||
# Google Analytics # | ||
# ---------------- # | ||
config.x.tracker_root = '[need to pull this from the credentials.yml]' | ||
config.x.tracker_root = "[need to pull this from the credentials.yml]" | ||
|
||
# ------------------------------------------------------------------------ # | ||
# reCAPTCHA - recaptcha appears on the create account and contact us forms # | ||
|
@@ -198,3 +199,4 @@ class Application < Rails::Application | |
end | ||
|
||
end | ||
# rubocop:enable Layout/LineLength |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
# frozen_string_literal: true | ||
# Be sure to restart your server when you modify this file. | ||
|
||
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. | ||
# You can add backtrace silencers for libraries that you're using but don't | ||
# wish to see in your backtraces. | ||
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } | ||
|
||
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code. | ||
# You can also remove all the silencers if you're trying to debug a problem | ||
# that might stem from framework code. | ||
# Rails.backtrace_cleaner.remove_silencers! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,26 @@ | ||
Bullet.tap do |config| | ||
config.enable = true | ||
# config.alert = true | ||
config.bullet_logger = true | ||
config.console = true | ||
# config.growl = true | ||
# config.xmpp = { :account => '[email protected]', | ||
# :password => 'bullets_password_for_jabber', | ||
# :receiver => '[email protected]', | ||
# :show_online_status => true } | ||
config.rails_logger = true | ||
# config.honeybadger = true | ||
# config.bugsnag = true | ||
# config.airbrake = true | ||
# config.rollbar = true | ||
config.add_footer = true | ||
# config.stacktrace_includes = [ 'your_gem', 'your_middleware' ] | ||
# config.stacktrace_excludes = [ 'their_gem', 'their_middleware' ] | ||
# config.slack = { webhook_url: 'http://some.slack.url', channel: '#default', username: 'notifier' } | ||
end if defined?(Bullet) | ||
# frozen_string_literal: true | ||
|
||
if defined?(Bullet) | ||
Bullet.tap do |config| | ||
config.enable = true | ||
# config.alert = true | ||
config.bullet_logger = true | ||
config.console = true | ||
# config.growl = true | ||
# config.xmpp = { :account => '[email protected]', | ||
# :password => 'bullets_password_for_jabber', | ||
# :receiver => '[email protected]', | ||
# :show_online_status => true } | ||
config.rails_logger = true | ||
# config.honeybadger = true | ||
# config.bugsnag = true | ||
# config.airbrake = true | ||
# config.rollbar = true | ||
config.add_footer = true | ||
# config.stacktrace_includes = [ 'your_gem', 'your_middleware' ] | ||
# config.stacktrace_excludes = [ 'their_gem', 'their_middleware' ] | ||
# config.slack = { | ||
# webhook_url: 'http://some.slack.url', channel: '#default', username: 'notifier' | ||
# } | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
# frozen_string_literal: true | ||
|
||
# Use this hook to configure contact mailer. | ||
ContactUs.setup do |config| | ||
|
||
# ==> Mailer Configuration | ||
|
||
# Configure the e-mail address which email notifications should be sent from. If emails must be sent from a verified email address you may set it here. | ||
# Configure the e-mail address which email notifications should be sent from. | ||
# If emails must be sent from a verified email address you may set it here. | ||
# Example: | ||
# config.mailer_from = "[email protected]" | ||
config.mailer_from = nil | ||
|
@@ -23,8 +25,8 @@ | |
# Example: | ||
# config.form_gem = 'formtastic | ||
# config.form_gem = 'formtastic' | ||
|
||
# Set the following variable to true if you are using localized paths | ||
# e.g. /en/contact-us OR /fr/contact-us | ||
config.localize_routes = true | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,8 @@ ContactUs.setup do |config| | |
|
||
# ==> Mailer Configuration | ||
|
||
# Configure the e-mail address which email notifications should be sent from. If emails must be sent from a verified email address you may set it here. | ||
# Configure the e-mail address which email notifications should be sent from. | ||
# If emails must be sent from a verified email address you may set it here. | ||
# Example: | ||
# config.mailer_from = "[email protected]" | ||
config.mailer_from = nil | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.