Open vladfaust opened 5 years ago
post = Post.where(id: 1).join(:author) { |x| x.select(:id, :name) } pp post # <Post @author=<User @id=42 @name="John"> @content="...">
Should work without :id.
:id
Should work without
:id
.