Sha256: ce6235480cb1b601ec0f25277e63790feb686556cb1e3a3f71a103e8808aea40

Contents?: true

Size: 221 Bytes

Versions: 3

Compression:

Stored size: 221 Bytes

Contents

class TagBat::Tagging < ActiveRecord::Base

 belongs_to :taggable, :polymorphic => true
 belongs_to :tag, :class_name => 'TagBat::Tag'

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

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tag_bat-0.1.0 app/models/tag_bat/tagging.rb
tag_bat-0.0.3 app/models/tag_bat/tagging.rb
tag_bat-0.0.2 app/models/tag_bat/tagging.rb