Sha256: a5cf32463a9fd33cf48d959134051057231fd3ec68ebc055daefc6cdf84a630f
Contents?: true
Size: 238 Bytes
Versions: 11
Compression:
Stored size: 238 Bytes
Contents
class Tagging < ActiveRecord::Base #:nodoc: belongs_to :tag belongs_to :taggable, :polymorphic => true def after_destroy if Tag.destroy_unused if tag.taggings.count.zero? tag.destroy end end end end
Version data entries
11 entries across 11 versions & 7 rubygems