Sha256: d82b0ff8db640c6f32d97b07656edc6dca7f81fe05fc87933fe1b1dc7876c71c
Contents?: true
Size: 316 Bytes
Versions: 4
Compression:
Stored size: 316 Bytes
Contents
class Gutentag::Tagging < ActiveRecord::Base belongs_to :taggable, :polymorphic => true belongs_to :tag, :class_name => 'Gutentag::Tag' validates :taggable, :presence => true validates :tag, :presence => true validates :tag_id, :uniqueness => { :scope => [:taggable_id, :taggable_type] } end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
gutentag-0.3.0 | app/models/gutentag/tagging.rb |
gutentag-0.2.2 | app/models/gutentag/tagging.rb |
gutentag-0.2.1 | app/models/gutentag/tagging.rb |
gutentag-0.2.0 | app/models/gutentag/tagging.rb |