We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 630342e + 90b3f69 commit 9badb0fCopy full SHA for 9badb0f
guides/source/configuring.md
@@ -1037,15 +1037,15 @@ before,
1037
1038
```ruby
1039
class Post
1040
- self.table_name = "blog_posts"
1041
end
1042
1043
class Comment
1044
belongs_to :post
1045
1046
1047
-Comment.join(:post).where(posts: { id: 1 }) # deprecated if the table name is not `posts`
1048
-Comment.join(:post).where(post: { id: 1 }) # instead use the relation's name
+post = Post.first
+Comment.where(posts: post) # deprecated
+Comment.where(post: post) # instead use the relation's name
1049
```
1050
1051
#### `ActiveRecord::ConnectionAdapters::Mysql2Adapter.emulate_booleans`
0 commit comments