Skip to content
Browse files

Added missing before-destroy call.

  • Loading branch information...
1 parent 7b6326b commit e17bac43d29de0d04c6fdf4d3e05b95656b4ce1d @macourtney macourtney committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/clj_record/core.clj
View
1 src/clj_record/core.clj
@@ -141,6 +141,7 @@ instance."
"Deletes by (record :id)."
[model-name record]
(connected (db-spec-for model-name)
+ (before-destroy model-name record)
(sql/delete-rows (table-name model-name) ["id = ?" (:id record)])
(after-destroy model-name record)))

0 comments on commit e17bac4

Please sign in to comment.
Something went wrong with that request. Please try again.