Sha256: 8a176a6ab83ae4587400b574aaf56ceecd179bd9362173cc625c7e2f0014b232
Contents?: true
Size: 357 Bytes
Versions: 1
Compression:
Stored size: 357 Bytes
Contents
module TagBat::ActiveRecord def self.included(base) base.extend TagBat::ActiveRecord::ClassMethods end module ClassMethods def has_many_tags has_many :taggings, :class_name => 'TagBat::Tagging', :as => :taggable, :dependent => :destroy has_many :tags, :class_name => 'TagBat::Tag', :through => :taggings end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tag_bat-0.0.3 | lib/tag_bat/active_record.rb |