Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve pp output for ActiveHash::Relation
Previously the output might look like: #<ActiveHash::Relation:0x00007f4c2dc3ca28 @all_records= [#<Layout:0x00007f4c2df4f198 @attributes={:id=>1, :name=>"1"}>, #<Layout:0x00007f4c2df4cfd8 @attributes={:id=>2, :name=>"2"}>, #<Layout:0x00007f4c2df4b9a8 @attributes={:id=>3, :name=>"3"}>, #<Layout:0x00007f4c2df7d9f8 @attributes={:id=>4, :name=>"4"}>], @conditions=#<ActiveHash::Relation::Conditions:0x00007f4c2dc3bd58 @conditions=[]>, @klass=Layout, @order_values=[]> After this change the output looks like: [#<Layout:0x00007f2755785d60 @attributes={:id=>1, :name=>"1"}>, #<Layout:0x00007f2755784668 @attributes={:id=>2, :name=>"2"}>, #<Layout:0x00007f2755783a38 @attributes={:id=>3, :name=>"3"}>, #<Layout:0x00007f2755782db8 @attributes={:id=>4, :name=>"4"}>] Closes active-hash#285
- Loading branch information