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

Version Path
tagalong-0.1.4 lib/tagalong/tagalong_tagging.rb
tagalong-0.1.3 lib/tagalong/tagalong_tagging.rb
tagalong-0.1.2 lib/tagalong/tagalong_tagging.rb
tagalong-0.1.1 lib/tagalong/tagalong_tagging.rb
tagalong-0.1.0 lib/tagalong/tagalong_tagging.rb
tagalong-0.0.9 lib/tagalong/tagalong_tagging.rb
tagalong-0.0.8 lib/tagalong/tagalong_tagging.rb
tagalong-0.0.7 lib/tagalong/tagalong_tagging.rb
tagalong-0.0.6 lib/tagalong/tagalong_tagging.rb
tagalong-0.0.5 lib/tagalong/tagalong_tagging.rb
tagalong-0.0.4 lib/tagalong/tagalong_tagging.rb