switch to manual is_delete checking to prevent derpie errors from sites deleting

This commit is contained in:
Kyle Drake 2015-02-12 15:55:38 -08:00
parent 0552b4e9b7
commit af2b7a3f86
5 changed files with 8 additions and 16 deletions

View file

@ -19,7 +19,8 @@ module Sequel
# so this adds the filter for the first time the class' dataset is accessed for the new model.
def dataset
if @_is_deleted_filter_set.nil?
@dataset.filter! is_deleted: false
#KD: I turned this off because I think it's easier to do this manually.
#@dataset.filter! is_deleted: false
@_is_deleted_filter_set = true
end
super