lib/evil_seed/relation_dumper.rb in evil-seed-0.1.2 vs lib/evil_seed/relation_dumper.rb in evil-seed-0.1.3

- old
+ new

@@ -1,6 +1,8 @@ # frozen_string_literal: true +require 'active_support/core_ext/array/grouping' + # As method ActiveRecord::Relation#in_batches is available only since ActiveRecord 5.0 # we will backport it only for us via refinements for ActiveRecord 4.2 compatibility. unless ActiveRecord::Batches.instance_methods(false).include?(:in_batches) require_relative 'refinements/in_batches' using EvilSeed::Refinements::InBatches