diff options
Diffstat (limited to 'config/initializers/00_rails_disable_joins.rb')
-rw-r--r-- | config/initializers/00_rails_disable_joins.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/initializers/00_rails_disable_joins.rb b/config/initializers/00_rails_disable_joins.rb new file mode 100644 index 00000000000..24305429034 --- /dev/null +++ b/config/initializers/00_rails_disable_joins.rb @@ -0,0 +1,4 @@ +# frozen_string_literal: true + +# Extend `disable_joins` to accept Proc +ActiveRecord::Associations::Association.prepend(GemExtensions::ActiveRecord::ConfigurableDisableJoins) |