search for: before_find

Displaying 1 result from an estimated 1 matches for "before_find".

2006 Apr 18
4
The two methods of handling deleted records. Standards?
...de 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 still need to do some coding to make the delete strategy transparen...