activerecord_where_assoc:使ActiveRecord在关联上执行条件 源码
ActiveRecord哪里Assoc 使用此gem可以轻松地根据ActiveRecord(Rails)中记录的关联来进行条件。 (使用SQL的EXISTS运算符) # Find my_post's comments that were not made by an admin my_post . comments . where_assoc_not_exists ( :author , is_admin : true ) . where ( ... ) # Find every posts that have comments by an admin Post . where_assoc
文件列表
activerecord_where_assoc:使ActiveRecord在关联上执行条件
(预估有个126文件)
rails_head.gemfile
1KB
rails_4_1.gemfile
469B
rails_6_0.gemfile
140B
rails_5_1.gemfile
162B
rails_5_0.gemfile
140B
rails_6_1.gemfile
182B
rails_4_2.gemfile
140B
rails_5_2.gemfile
140B
Gemfile
212B
activerecord_where_assoc.gemspec
2KB
暂无评论