module Sequel::Plugins::Paranoia::ClassMethods

Attributes

deleted_timestamp_field[R]

The field to store the deleted timestamp

Public Instance Methods

deleted_timestamp_overwrite?() click to toggle source

Whether to overwrite the deleted timestamp if it already exists

# File lib/sequel_paranoia.rb, line 43
def deleted_timestamp_overwrite?
  @deleted_timestamp_overwrite
end
inherited(subclass) click to toggle source

Copy the class instance variables used from the superclass to the subclass

Calls superclass method
# File lib/sequel_paranoia.rb, line 48
def inherited(subclass)
  super
  [:@deleted_timestamp_field, :@deleted_timestamp_overwrite].each do |iv|
    subclass.instance_variable_set(iv, instance_variable_get(iv))
  end
end
with_deleted() click to toggle source
# File lib/sequel_paranoia.rb, line 55
def with_deleted
  dataset.unfiltered
end