module PermanentRecords::IsPermanent

Included into ActiveRecord for all models

Public Instance Methods

is_permanent?() click to toggle source
# File lib/permanent_records.rb, line 238
def is_permanent? # rubocop:disable Naming/PredicateName
  columns.detect { |c| c.name == 'deleted_at' }
end