Sha256: 6351b2f27dcdc7bf4c7bdfa2c52e2a25f0ed570614471056b1de2cb1b7c57d26

Contents?: true

Size: 289 Bytes

Versions: 4

Compression:

Stored size: 289 Bytes

Contents

class Link < ActiveRecord::Base
  include PolymorphicIntegerType::Extensions

  belongs_to :source, polymorphic: true, integer_type: true
  belongs_to :target, polymorphic: true, integer_type: true

  def source=(val)
    super(val)
  end

  def source_type=(val)
    super(val)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
polymorphic_integer_type-2.3.0 spec/support/link.rb
polymorphic_integer_type-2.2.5 spec/support/link.rb
polymorphic_integer_type-2.2.4 spec/support/link.rb
polymorphic_integer_type-2.2.3 spec/support/link.rb