Caching association that was in where clause

前端 未结 0 325
耶瑟儿~
耶瑟儿~ 2020-12-05 00:31

Let me show an example:

I have 2 models:

class User < ActiveRecord::Base
  has_many :posts
end

class Post < ActiveRecord::Base
  belongs_to :use         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题