test/dummy/app/models/comment.rb in dread-0.0.5 vs test/dummy/app/models/comment.rb in dread-0.0.6
- old
+ new
@@ -1,4 +1,5 @@
class Comment < ActiveRecord::Base
belongs_to :user
belongs_to :tweet
+ has_many :pictures, dependent: :destroy, as: :imageable
end