Sha256: 197452c2e085de298d7f3e2c93620d9491123da829afbabebda2112ff60656c5

Contents?: true

Size: 290 Bytes

Versions: 2

Compression:

Stored size: 290 Bytes

Contents

module AnnotatorStore
  class Range < ActiveRecord::Base
    # Associations
    belongs_to :annotation

    # Validations
    validates :start, presence: true
    validates :end, presence: true
    validates :start_offset, presence: true
    validates :end_offset, presence: true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
annotator_store-1.0.0 app/models/annotator_store/range.rb
annotator_store-1.0.0.pre app/models/annotator_store/range.rb