Sha256: d2a21d50be39c7fa2176f37b94627aaf262b93f111e503c7ed4421a949612616
Contents?: true
Size: 342 Bytes
Versions: 19
Compression:
Stored size: 342 Bytes
Contents
module RedmineCrm class Tagging < ActiveRecord::Base #:nodoc: belongs_to :tag belongs_to :taggable, :polymorphic => true after_destroy :destroy_tag_if_unused private def destroy_tag_if_unused if Tag.destroy_unused if tag.taggings.count.zero? tag.destroy end end end end end
Version data entries
19 entries across 19 versions & 2 rubygems