Skip to content

Commit

Permalink
add ActiveSupport::TimeZone to yaml_column_permitted_classes
Browse files Browse the repository at this point in the history
  • Loading branch information
abdellani committed Jan 3, 2024
1 parent d591ce6 commit ab1a0ba
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"action_mailer/railtie",
"active_job/railtie",
"action_cable/engine",
#"action_mailbox/engine",
#"action_text/engine",
# "action_mailbox/engine",
# "action_text/engine",
"rails/test_unit/railtie",
"sprockets/railtie" # Disable this after migrating to Webpacker
].each do |railtie|
Expand Down Expand Up @@ -150,6 +150,7 @@ class Application < Rails::Application
module ::Reporting; end
Rails.application.reloader.to_prepare do
next if defined?(::Reporting) && defined?(::Reporting::Errors)

loader = Zeitwerk::Loader.new
loader.push_dir("#{Rails.root}/lib/reporting", namespace: ::Reporting)
loader.enable_reloading
Expand Down Expand Up @@ -227,7 +228,9 @@ module ::Reporting; end
config.action_view.form_with_generates_remote_forms = false
config.active_record.cache_versioning = false
config.active_record.has_many_inversing = false
config.active_record.yaml_column_permitted_classes = [BigDecimal, Symbol, ActiveSupport::TimeWithZone, Time]
config.active_record.yaml_column_permitted_classes = [BigDecimal, Symbol, Time,
ActiveSupport::TimeWithZone,
ActiveSupport::TimeZone]

config.active_support.escape_html_entities_in_json = true

Expand Down

0 comments on commit ab1a0ba

Please sign in to comment.