rails up to 7.0and ruby to 2.7.2
This commit is contained in:
parent
c67e9b5be8
commit
3d81dd6b57
23 changed files with 485 additions and 502 deletions
|
|
@ -9,7 +9,7 @@ Bundler.require(*Rails.groups)
|
|||
module Foodsoft
|
||||
class Application < Rails::Application
|
||||
# Initialize configuration defaults for originally generated Rails version.
|
||||
config.load_defaults 5.0
|
||||
config.load_defaults 7.0
|
||||
|
||||
# Settings in config/environments/* take precedence over those specified here.
|
||||
# Application configuration can go into files in config/initializers
|
||||
|
|
@ -36,9 +36,6 @@ module Foodsoft
|
|||
# Configure the default encoding used in templates for Ruby 1.9.
|
||||
config.encoding = "utf-8"
|
||||
|
||||
# TODO: Remove this. See CVE-2022-32224 for details.
|
||||
config.active_record.yaml_column_permitted_classes = [BigDecimal, Date, Symbol, Time]
|
||||
|
||||
# Enable escaping HTML in JSON.
|
||||
config.active_support.escape_html_entities_in_json = true
|
||||
|
||||
|
|
@ -66,6 +63,12 @@ module Foodsoft
|
|||
# Load legacy scripts from vendor
|
||||
config.assets.precompile += ['vendor/assets/javascripts/*.js']
|
||||
|
||||
config.active_record.yaml_column_permitted_classes = [Symbol, BigDecimal]
|
||||
|
||||
config.autoloader = :zeitwerk
|
||||
|
||||
# Ex:- :default =>''
|
||||
|
||||
# CORS for API
|
||||
config.middleware.insert_before 0, Rack::Cors do
|
||||
allow do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue