Skip to content

Commit

Permalink
add :Time to yaml_column_permitted_classes
Browse files Browse the repository at this point in the history
To solve the following error
```ruby
     Failure/Error: expect(oc.versions.last.reify.name).to eq "Original"

     Psych::DisallowedClass:
       Tried to load unspecified class: Time
```
  • Loading branch information
abdellani committed Dec 26, 2023
1 parent 24dba6d commit 0d69318
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 @@ -227,7 +227,7 @@ 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::SafeBuffer]
config.active_record.yaml_column_permitted_classes = [BigDecimal, Symbol, ActiveSupport::SafeBuffer, Time]

config.active_support.escape_html_entities_in_json = true

Expand Down

0 comments on commit 0d69318

Please sign in to comment.