Sha256: c0f44184d4c58f495a3712e2baa4322d96cd84774efb00a0f3022415297ae95d

Contents?: true

Size: 233 Bytes

Versions: 2

Compression:

Stored size: 233 Bytes

Contents

class TagRingtail::Tagging < ActiveRecord::Base
  belongs_to :taggable, :polymorphic => true
  belongs_to :tag, :class_name => 'TagRingtail::Tag'

  validates :taggable, :presence => true
  validates :tag,      :presence => true
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tag_ringtail-0.1.0 app/models/tag_ringtail/tagging.rb
tag_ringtail-0.0.2 app/models/tag_ringtail/tagging.rb