Module: Creeper::Extensions::ActiveRecord

Defined in:
lib/creeper/extensions/active_record.rb

Instance Method Summary collapse

Instance Method Details

#delayObject



21
22
23
# File 'lib/creeper/extensions/active_record.rb', line 21

def delay
  Proxy.new(DelayedModel, self)
end

#delay_for(interval) ⇒ Object



24
25
26
# File 'lib/creeper/extensions/active_record.rb', line 24

def delay_for(interval)
  Proxy.new(DelayedModel, self, Time.now.to_f + interval.to_f)
end