Displaying 1 result from an estimated 1 matches for "logicallydeletable".
2006 May 18
5
Overriding default DELETE behavior with logical deletes
...ry
key fetches unfortunately, but this can be overriden in a model
superclass).
3. Rails Implementation
What I would like is that all finders and by-id look ups automatically
append "is_deleted == false" to all SQL queries for a specific set of
classes (which could subclass eg "LogicallyDeletable" model super
class).
Any pointers on how to implement this elegantly are much appreciated.
Thanks,
Konstantin
--
Posted via http://www.ruby-forum.com/.