4c245bfd12
The change in PR #43302 introduced a bug where unsaved records are not displayed in pretty_print. The following code will not show unsaved records until this PR is merged. ```ruby post = Post.create! post.comments.build pp(post.comments) #=> expected "[#<Post:0x000000014c0b48a0 ...>]", got "[]" ``` Fixed to call `#load_target` before display as well as `#inspect`. |
||
---|---|---|
.. | ||
active_record | ||
arel | ||
rails/generators | ||
active_record.rb | ||
arel.rb |