4bbd93ded1
Adding the .ruby-verison file triggered previously un-run cops, specifically: This cop is designed to help upgrade to Ruby 3.0. It will add the comment `# frozen_string_literal: true` to the top of files to enable frozen string literals. Frozen string literals will be default in Ruby 3.0. The comment will be added below a shebang and encoding comment. The frozen string literal comment is only valid in Ruby 2.3+. More info on rubocop [Automatic-Corrections](https://github.com/bbatsov/rubocop/wiki/Automatic-Corrections)
35 lines
1.0 KiB
Ruby
35 lines
1.0 KiB
Ruby
# frozen_string_literal: true
|
|
require_relative 'boot'
|
|
|
|
require 'rails/all'
|
|
|
|
# Require the gems listed in Gemfile, including any gems
|
|
# you've limited to :test, :development, or :production.
|
|
Bundler.require(*Rails.groups)
|
|
|
|
module SkillAssessmentApp
|
|
class Application < Rails::Application
|
|
# 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.
|
|
|
|
# bitters
|
|
config.assets.paths << Rails.root.join('vendor', 'assets', 'base')
|
|
|
|
# bourbon
|
|
config.assets.paths << Rails.root.join('vendor', 'assets', 'bourbon')
|
|
|
|
# bower
|
|
config.assets.paths << Rails.root.join('vendor', 'assets', 'bower_components')
|
|
|
|
config.action_mailer.delivery_method = :mailjet
|
|
config.action_mailer.default_url_options = { host: ENV['full_app_url'] }
|
|
|
|
config.generators do |g|
|
|
g.assets false
|
|
g.helper false
|
|
g.routes false
|
|
end
|
|
end
|
|
end
|