Sha256: d2d5ab58a50f149ae4098e72c120a0e945c3303a3aa9184ecff24eb052ff95b2

Contents?: true

Size: 214 Bytes

Versions: 9

Compression:

Stored size: 214 Bytes

Contents

module Delayed
  module Web
    class ActiveRecordDecorator < SimpleDelegator
      def queue! now = Time.current
        update_attributes! run_at: now, failed_at: nil, last_error: nil
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
delayed-web-0.4.7 app/decorators/delayed/web/active_record_decorator.rb
delayed-web-0.4.6 app/decorators/delayed/web/active_record_decorator.rb
delayed-web-0.4.5 app/decorators/delayed/web/active_record_decorator.rb
delayed-web-0.4.4 app/decorators/delayed/web/active_record_decorator.rb
delayed-web-0.4.3 app/decorators/delayed/web/active_record_decorator.rb
delayed-web-0.4.2 app/decorators/delayed/web/active_record_decorator.rb
delayed-web-0.4.1 app/decorators/delayed/web/active_record_decorator.rb
delayed-web-0.4.0 app/decorators/delayed/web/active_record_decorator.rb
delayed-web-0.3.0 app/decorators/delayed/web/active_record_decorator.rb