Class: ActiveRecord::Relation

Inherits:
Object
  • Object
show all
Defined in:
lib/crunchr/active_record.rb

Instance Method Summary collapse

Instance Method Details

#timed_interval(length, amount = 1) ⇒ Object



65
66
67
# File 'lib/crunchr/active_record.rb', line 65

def timed_interval(length, amount=1)
  @records = self.to_a.timed_interval(length, amount)
end