Skip to content
Snippets Groups Projects
Commit 99fddb45 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

dependent destroy

parent 61916e06
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ module User::WithFavorites ...@@ -2,7 +2,7 @@ module User::WithFavorites
extend ActiveSupport::Concern extend ActiveSupport::Concern
included do included do
has_many :favorites has_many :favorites, dependent: :destroy
end end
def add_favorite(about) def add_favorite(about)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment