Sha256: dd508ab353e47334626f24767f54bd33078641337c9347023bb52b9342f0cf2d

Contents?: true

Size: 204 Bytes

Versions: 2

Compression:

Stored size: 204 Bytes

Contents

class OutputChunk < ActiveRecord::Base
  belongs_to :task

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shipit-engine-0.1.0 app/models/output_chunk.rb
shipit-engine-0.0.1.pre app/models/output_chunk.rb