lib/samsara/model.rb in samsara-0.0.2 vs lib/samsara/model.rb in samsara-0.0.3
- old
+ new
@@ -11,10 +11,10 @@
has_many :auditing_revisions, class_name: Samsara.revision_class_name, as: :subject
after_create :audit_create
after_update :audit_update, if: :changed?
- after_destroy :audit_destroy, if: :destroyed?
+ after_destroy :audit_destroy
end
end
def audit_create
create_audit :create