activerecord-delegation-expected_behaviour 1.8.0
Since Rails 5 you can no longer call some ActiveRecord class methods named like their Enumerable counterparts. This gem reinstates the expected behaviour, where you can always get the method from Enumerable by calling to_a on the relation.
Gemfile:
=
复制到剪贴板
已复制!
安装:
=
Runtime 依赖 (1):
activerecord
~> 7.1