module Qujo module Concerns module Status extend ActiveSupport::Concern included do def accept self.accepted_at = Time.now self.save! end def cancel self.status = :cancelled self.save! end def retry self.accepted_at = nil self.status = :retry self.log << "--- retry ---" self.message = nil self.save end end end end end