exception_handler icon indicating copy to clipboard operation
exception_handler copied to clipboard

Error model

Open RozanMustafa opened this issue 3 years ago • 0 comments

I want to fire after_create callback in error model so I can delete older error records I tried: class Error < ApplicationRecord after_create :delete_old

def delete_old Error.order('id desc').offset(5).destroy_all end end

But didn't work

RozanMustafa avatar Apr 28 '22 00:04 RozanMustafa