kakurenbo-puti
kakurenbo-puti copied to clipboard
Method soft_destroyed? should read attribute soft_delete_column?
Hi, thank you for a cho-iketeru gem.
soft_destroyed?
executes SQL, now. But for performance, I think it's better to read attribute soft_delete_column.
I wonder why don't you do?
@akirakoyasu
HI, thanks for a report.
This gem supports dependent delete. https://github.com/alfa-jpn/kakurenbo-puti#definition-of-the-dependency
So, A resource can't known a self destroyed status without a SQL. But, I think it can optimize when a model doesn't use dependent delete.
best regards,