module Softy::ClassMethods

Public Instance Methods

only_deleted() click to toggle source
# File lib/softy.rb, line 39
def only_deleted
  unscoped.where("#{self.table_name}.deleted_at is not null")
end
with_deleted() click to toggle source
# File lib/softy.rb, line 43
def with_deleted
  unscoped
end