Sha256: 83dbe7b1ba55fbe43decad85ca1a4207a3be15a4b72e62b01a679ba84ec86c01
Contents?: true
Size: 205 Bytes
Versions: 15
Compression:
Stored size: 205 Bytes
Contents
class Tagging < ActiveRecord::Base #:nodoc: belongs_to :tag belongs_to :taggable, :polymorphic => true after_destroy do tag.destroy if Tag.destroy_unused && tag.taggings.count.zero? end end
Version data entries
15 entries across 15 versions & 2 rubygems