-
Notifications
You must be signed in to change notification settings - Fork 249
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
1 parent
c9c3e78
commit 3fb004c
Showing
16 changed files
with
293 additions
and
237 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env ruby | ||
APP_PATH = File.expand_path('../config/application', __dir__) | ||
require_relative '../config/boot' | ||
require 'rails/commands' | ||
APP_PATH = File.expand_path("../config/application", __dir__) | ||
require_relative "../config/boot" | ||
require "rails/commands" |
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,4 @@ | ||
#!/usr/bin/env ruby | ||
require_relative '../config/boot' | ||
require 'rake' | ||
require_relative "../config/boot" | ||
require "rake" | ||
Rake.application.run |
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,73 +1,35 @@ | ||
# frozen_string_literal: true | ||
|
||
require_relative 'boot' | ||
require 'rails' | ||
|
||
%w( | ||
active_record/railtie | ||
action_controller/railtie | ||
action_view/railtie | ||
action_mailer/railtie | ||
active_job/railtie | ||
rails/test_unit/railtie | ||
sprockets/railtie | ||
).each do |railtie| | ||
require railtie | ||
rescue LoadError | ||
end | ||
require_relative "boot" | ||
|
||
require "rails" | ||
# Pick the frameworks you want: | ||
require "active_model/railtie" | ||
require "active_job/railtie" | ||
require "active_record/railtie" | ||
# require "active_storage/engine" | ||
require "action_controller/railtie" | ||
require "action_mailer/railtie" | ||
# require "action_mailbox/engine" | ||
# require "action_text/engine" | ||
require "action_view/railtie" | ||
# require "action_cable/engine" | ||
require "sprockets/railtie" | ||
require "rails/test_unit/railtie" | ||
|
||
# Require the gems listed in Gemfile, including any gems | ||
# you've limited to :test, :development, or :production. | ||
Bundler.require(*Rails.groups) | ||
Bundler.require(:default, Rails.env) | ||
|
||
module WebsiteOne | ||
class Application < Rails::Application | ||
# Initialize configuration defaults for originally generated Rails version. | ||
config.load_defaults 6.1 | ||
# necessary to make Settings available | ||
Config::Integrations::Rails::Railtie.preload | ||
# config.load_defaults 5.0 | ||
# Settings in config/environments/* take precedence over those specified here. | ||
# Application configuration should go into files in config/initializers | ||
# -- all .rb files in that directory are automatically loaded. | ||
config.exceptions_app = routes | ||
|
||
config.action_mailer.delivery_method = Settings.mailer.delivery_method.to_sym | ||
config.action_mailer.smtp_settings = Settings.mailer.smtp_settings.to_hash | ||
config.action_mailer.default_url_options = { host: 'www.agileventures.org' } | ||
|
||
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. | ||
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC. | ||
# config.time_zone = 'Central Time (US & Canada)' | ||
ENV['TZ'] = 'UTC' | ||
|
||
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. | ||
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] | ||
# config.i18n.default_locale = :de | ||
I18n.enforce_available_locales = false | ||
|
||
config.assets.enabled = true | ||
|
||
# Precompile additional assets. | ||
# application.js, application.css.scss, and all non-JS/CSS in app/assets folder are already added. | ||
config.assets.precompile += %w( | ||
mercury_init.js 404.js projects.js events.js google-analytics.js | ||
disqus.js event_instances.js scrums.js moment-timezone-with-data-2012-2022.js | ||
) | ||
|
||
# ensure svg assets are compiled in production | ||
config.assets.precompile += %w(jobs.svg lady-dev.svg real-projects.svg runners.svg standups.svg) | ||
|
||
# config.assets.css_compressor = :sass | ||
|
||
config.autoload_paths += Dir[Rails.root.join('app', '**/')] | ||
config.autoload_paths += Dir[Rails.root.join('lib')] | ||
|
||
# config.middleware.insert_before 0, Rack::Cors do | ||
# allow do | ||
# origins 'https://www.react.agileventures.org' | ||
# resource '*', headers: :any, methods: [:get] | ||
# end | ||
# end | ||
# Configuration for the application, engines, and railties goes here. | ||
# | ||
# These settings can be overridden in specific environments using the files | ||
# in config/environments, which are processed later. | ||
# | ||
# config.time_zone = "Central Time (US & Canada)" | ||
# config.eager_load_paths << Rails.root.join("extras") | ||
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,6 +1,4 @@ | ||
# frozen_string_literal: true | ||
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) | ||
|
||
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. | ||
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,8 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
# Load the Rails application. | ||
require_relative 'application' | ||
require_relative 'nested_key_extension' | ||
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
Oops, something went wrong.