Module: RescueEach::ActiveRecord

Defined in:
lib/rescue_each.rb

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



160
161
162
163
164
165
166
167
168
169
170
171
172
# File 'lib/rescue_each.rb', line 160

def self.included(klass)
  klass.class_eval do
    
    def self.rescue_find_each(*args, &block)
      rescue_send :find_each, *args, &block
    end
    
    def self.rescue_find_in_batches(*args, &block)
      rescue_send :find_in_batches, *args, &block
    end
    
  end
end