Skip to content

Commit

Permalink
Fix deprecation warning for legacy_connection_handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ragesoss committed Aug 8, 2022
1 parent e4ceff4 commit 771581e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ class Application < Rails::Application
# Handle YAML safe loading of serialized Ruby objects
config.active_record.yaml_column_permitted_classes = [Symbol, BigDecimal, DateTime, Date, Time, ActiveSupport::TimeWithZone, ActiveSupport::TimeZone]

config.active_record.legacy_connection_handling = false

config.action_dispatch.return_only_media_type_on_content_type = false

config.middleware.insert_before 0, Rack::Cors do
Expand Down

0 comments on commit 771581e

Please sign in to comment.