Class: Tagging
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Tagging
- Defined in:
- app/models/tagging.rb
Overview
The Tagging join model.
Instance Method Summary collapse
- #delete_orphaned_tag ⇒ Object private
Instance Method Details
#delete_orphaned_tag ⇒ Object (private)
10 11 12 |
# File 'app/models/tagging.rb', line 10 def delete_orphaned_tag tag.destroy if tag && tag.taggings.count == 0 end |