Skip to content

Commit

Permalink
Fix: Psych::DisallowedClass
Browse files Browse the repository at this point in the history
  • Loading branch information
khiav reoy committed Jul 30, 2023
1 parent 06ef370 commit 186ccf0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/active_record/support/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
end
end

ActiveRecord.use_yaml_unsafe_load = true

users = User.create([
{ name: 'John', email: '[email protected]' },
{ name: 'Pearl', email: '[email protected]', serialized_attribute: { testing: true, deep: { deep: :deep }}},
Expand Down

0 comments on commit 186ccf0

Please sign in to comment.