module Sequel::Plugins::ClassTableInheritance::InstanceMethods

Public Instance Methods

delete() click to toggle source

Delete the row from all backing tables, starting from the most recent table and going through all superclasses.

# File lib/sequel/plugins/class_table_inheritance.rb, line 363
def delete
  raise Sequel::Error, "can't delete frozen object" if frozen?
  model.cti_models.reverse_each do |m|
    cti_this(m).delete
  end
  self
end
use_prepared_statements_for?(type) click to toggle source

Don’t allow use of prepared statements.

# File lib/sequel/plugins/class_table_inheritance.rb, line 372
def use_prepared_statements_for?(type)
  false
end