Displaying 1 result from an estimated 1 matches for "delete_strategy".
2006 Apr 18
4
The two methods of handling deleted records. Standards?
...39;s
finds, except when forced to include them? I mean, then I could code the way
I am normally doing, and I would only have to code extra for the cases when
I really want to find the deleted records (normally the find is only for
these or for one of them). Also, this would make it easier to switch
delete_strategy later on as well.
I was hoping for a general purpose :before_find filter, which I could use to
add the :constraints settings. Such a solution could be utilized in many
other ways too I guess. But, unfortunately there is no such thing in
ActiveRecord. Using this approach could be good, but I would...