Tag has_many taggings, and delete them on destroy

This commit is contained in:
joshua stein 2013-03-30 11:37:38 -05:00
parent 04218c8f6c
commit 0ff4ef2484

View file

@ -1,4 +1,7 @@
class Tag < ActiveRecord::Base
has_many :taggings,
:dependent => :delete_all
attr_accessor :filtered_count
scope :accessible_to, ->(user) do