Sha256: 2ab9de86c2d4097002e1f0bd2dae02a3c42beaa321f1fabdf1bea7402ea73f0c
Contents?: true
Size: 413 Bytes
Versions: 19
Compression:
Stored size: 413 Bytes
Contents
# frozen_string_literal: true class Gutentag::Tagging < ActiveRecord::Base self.table_name = "gutentag_taggings" belongs_to :taggable, :polymorphic => true belongs_to :tag, :class_name => "Gutentag::Tag", :counter_cache => true validates :taggable, :presence => true validates :tag, :presence => true validates :tag_id, :uniqueness => { :scope => %i[ taggable_id taggable_type ] } end
Version data entries
19 entries across 19 versions & 1 rubygems