Code style fixes

This commit is contained in:
Jyri-Petteri Paloposki 2020-10-10 02:27:42 +03:00
parent c6bbc67dab
commit d8acf60049
72 changed files with 458 additions and 594 deletions

View file

@ -1,8 +1,5 @@
# The Tagging join model.
class Tagging < ApplicationRecord
belongs_to :tag
belongs_to :taggable, :polymorphic => true, :touch => true
@ -13,5 +10,4 @@ class Tagging < ApplicationRecord
def delete_orphaned_tag
tag.destroy if tag and tag.taggings.count == 0
end
end