Sha256: af307790faf8ded59487d5b172ffb3cdaaf11c650b84b69ec4d1c3ebc7219dc1

Contents?: true

Size: 252 Bytes

Versions: 31

Compression:

Stored size: 252 Bytes

Contents

module Shipit
  class OutputChunk < ActiveRecord::Base
    belongs_to :task

    scope :tail, -> (start) { order(id: :asc).where('id > ?', start || 0) }

    def text=(string)
      super(string.force_encoding(Encoding::UTF_8).scrub)
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
shipit-engine-0.20.1 app/models/shipit/output_chunk.rb
shipit-engine-0.20.0 app/models/shipit/output_chunk.rb
shipit-engine-0.19.0 app/models/shipit/output_chunk.rb
shipit-engine-0.18.1 app/models/shipit/output_chunk.rb
shipit-engine-0.18.0 app/models/shipit/output_chunk.rb
shipit-engine-0.17.0 app/models/shipit/output_chunk.rb
shipit-engine-0.16.0 app/models/shipit/output_chunk.rb
shipit-engine-0.15.0 app/models/shipit/output_chunk.rb
shipit-engine-0.14.0 app/models/shipit/output_chunk.rb
shipit-engine-0.13.0 app/models/shipit/output_chunk.rb
shipit-engine-0.12.1 app/models/shipit/output_chunk.rb
shipit-engine-0.12.0 app/models/shipit/output_chunk.rb
shipit-engine-0.11.0 app/models/shipit/output_chunk.rb
shipit-engine-0.10.0 app/models/shipit/output_chunk.rb
shipit-engine-0.9.0 app/models/shipit/output_chunk.rb
shipit-engine-0.8.9 app/models/shipit/output_chunk.rb
shipit-engine-0.8.8 app/models/shipit/output_chunk.rb
shipit-engine-0.8.7 app/models/shipit/output_chunk.rb
shipit-engine-0.8.6 app/models/shipit/output_chunk.rb
shipit-engine-0.8.5 app/models/shipit/output_chunk.rb