Skip to content

Commit

Permalink
OTWO-7168 Fixed Psych::DisallowedClass exception (#1759)
Browse files Browse the repository at this point in the history
  • Loading branch information
Priya Rani authored Jan 11, 2024
1 parent bf7f26d commit 0e60e46
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# Raise an error on page load if there are pending migrations.
config.active_record.migration_error = :page_load

config.active_record.yaml_column_permitted_classes = [Symbol]
config.active_record.yaml_column_permitted_classes = [Symbol, Time]

# Debug mode disables concatenation and preprocessing of assets.
# This option may cause significant delays in view rendering with a large
Expand Down
2 changes: 1 addition & 1 deletion config/environments/staging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
# Do not dump schema after migrations.
config.active_record.dump_schema_after_migration = false

config.active_record.yaml_column_permitted_classes = [Symbol]
config.active_record.yaml_column_permitted_classes = [Symbol, Time]

# Use a different logger for distributed setups.
logger = ActiveSupport::Logger.new('/proc/1/fd/1')
Expand Down
2 changes: 1 addition & 1 deletion config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

config.active_support.test_order = :sorted

config.active_record.yaml_column_permitted_classes = [Symbol]
config.active_record.yaml_column_permitted_classes = [Symbol, Time]

config.cache_store = :null_store

Expand Down

0 comments on commit 0e60e46

Please sign in to comment.