Sha256: 4a6af1dfa74c5b2c9782e2c8f5d16041f4b96c6c8647293276a227784bfd1ac3
Contents?: true
Size: 322 Bytes
Versions: 11
Compression:
Stored size: 322 Bytes
Contents
module Tagalong class TagalongTagging < ::ActiveRecord::Base belongs_to :tagalong_tag, :class_name => 'Tagalong::TagalongTag' belongs_to :taggable, :polymorphic => true validates_presence_of :tagalong_tag_id validates_uniqueness_of :tagalong_tag_id, :scope => [ :taggable_type, :taggable_id ] end end
Version data entries
11 entries across 11 versions & 1 rubygems