Skip to content

Commit

Permalink
Fix: Pysch::DisallowedClass
Browse files Browse the repository at this point in the history
From what I'm seeing this `Psych::DisallowedClass` error is somewhat
common, I fixed/addressed it by allowiing the classes the error was
complaining about, as show in these links:

- ruby/psych#564
- https://stackoverflow.com/q/71332602
- public-activity/public_activity#374

Refs: #4366
  • Loading branch information
shaun-technovation committed Jan 10, 2024
1 parent 2bef5cb commit 2b5566a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ class Application < Rails::Application
only: %r{^/student/downloadable_parental_consent}

config.active_record.schema_format = :sql
config.active_record.yaml_column_permitted_classes = [Symbol]
config.active_record.yaml_column_permitted_classes = [Symbol, Date, Time, ActiveSupport::TimeZone, ActiveSupport::TimeWithZone]
end
end

0 comments on commit 2b5566a

Please sign in to comment.