Skip to content

Commit

Permalink
Fix: Psych::DisallowedClass
Browse files Browse the repository at this point in the history
  • Loading branch information
khiav223577 committed Jul 30, 2023
1 parent 06ef370 commit b4bb620
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::Base.use_yaml_unsafe_load = true

users = User.create([
{ name: 'John', email: 'john@example.com' },
{ name: 'Pearl', email: 'pearl@example.com', serialized_attribute: { testing: true, deep: { deep: :deep }}},
Expand Down

0 comments on commit b4bb620

Please sign in to comment.