diff options
author | Jacopo <beschi.jacopo@gmail.com> | 2018-08-27 15:35:31 +0300 |
---|---|---|
committer | Jacopo <beschi.jacopo@gmail.com> | 2018-08-29 17:56:34 +0300 |
commit | c6bddeacf4775b79edc9896f30da3c1f4136d4d1 (patch) | |
tree | 453164aca2281f6899f313f408b0fb37b98c3cdd /app/models/concerns/each_batch.rb | |
parent | 8af40870e2208612a5af34e19f231032745a7f90 (diff) |
Updates code using class_methods over module ClassMethods
Diffstat (limited to 'app/models/concerns/each_batch.rb')
-rw-r--r-- | app/models/concerns/each_batch.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/each_batch.rb b/app/models/concerns/each_batch.rb index a9e14cb55eb..8cf0b8b154d 100644 --- a/app/models/concerns/each_batch.rb +++ b/app/models/concerns/each_batch.rb @@ -3,7 +3,7 @@ module EachBatch extend ActiveSupport::Concern - module ClassMethods + class_methods do # Iterates over the rows in a relation in batches, similar to Rails' # `in_batches` but in a more efficient way. # |