Sha256: c9d912267ce711863d82bcb5444d4471b0425f76ed86648fc0e7570167c3aaad

Contents?: true

Size: 280 Bytes

Versions: 1

Compression:

Stored size: 280 Bytes

Contents

module Gemgento

  # @author Gemgento LLC
  class Relation < ActiveRecord::Base
    belongs_to :relation_type
    belongs_to :relatable, polymorphic: true
    belongs_to :related_to, polymorphic: true
    validates :relation_type, :relatable, :related_to, presence: true
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gemgento-2.8.0 app/models/gemgento/relation.rb