Module: Softy::ClassMethods

Defined in:
lib/softy.rb

Instance Method Summary collapse

Instance Method Details

#only_deletedObject



39
40
41
# File 'lib/softy.rb', line 39

def only_deleted
  unscoped.where("#{self.table_name}.deleted_at is not null")
end

#with_deletedObject



43
44
45
# File 'lib/softy.rb', line 43

def with_deleted
  unscoped
end