Sha256: cce9f6d8a6f73a47327b6ccd278e1a778dd8226b2643d7e85c677e3404d07a97

Contents?: true

Size: 461 Bytes

Versions: 27

Compression:

Stored size: 461 Bytes

Contents

module Inferno
  module Repositories
    class Tags < Repository
      class Model < Sequel::Model(db)
        many_to_many :requests,
                     class: 'Inferno::Repositories::Requests::Model',
                     join_table: :requests_tags,
                     left_key: :tags_id,
                     right_key: :requests_id

        def before_create
          self.id = SecureRandom.uuid
          super
        end
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
inferno_core-0.6.1 lib/inferno/repositories/tags.rb
inferno_core-0.6.0 lib/inferno/repositories/tags.rb
inferno_core-0.5.4 lib/inferno/repositories/tags.rb
inferno_core-0.5.3 lib/inferno/repositories/tags.rb
inferno_core-0.5.2 lib/inferno/repositories/tags.rb
inferno_core-0.5.1 lib/inferno/repositories/tags.rb
inferno_core-0.5.0 lib/inferno/repositories/tags.rb
inferno_core-0.4.44 lib/inferno/repositories/tags.rb
inferno_core-0.4.43 lib/inferno/repositories/tags.rb
inferno_core-0.4.42 lib/inferno/repositories/tags.rb
inferno_core-0.4.41 lib/inferno/repositories/tags.rb
inferno_core-0.4.40 lib/inferno/repositories/tags.rb
inferno_core-0.4.39 lib/inferno/repositories/tags.rb
inferno_core-0.4.38 lib/inferno/repositories/tags.rb
inferno_core-0.4.35 lib/inferno/repositories/tags.rb
inferno_core-0.4.34 lib/inferno/repositories/tags.rb
inferno_core-0.4.33 lib/inferno/repositories/tags.rb
inferno_core-0.4.32 lib/inferno/repositories/tags.rb
inferno_core-0.4.31 lib/inferno/repositories/tags.rb
inferno_core-0.4.30 lib/inferno/repositories/tags.rb