Module: Sequel::Plugins::ClassTableInheritance::InstanceMethods

Defined in:
lib/sequel/plugins/class_table_inheritance.rb

Instance Method Summary collapse

Instance Method Details

#deleteObject

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

Raises:



372
373
374
375
376
377
378
# File 'lib/sequel/plugins/class_table_inheritance.rb', line 372

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) ⇒ Boolean

Don’t allow use of prepared statements.

Returns:

  • (Boolean)


381
382
383
# File 'lib/sequel/plugins/class_table_inheritance.rb', line 381

def use_prepared_statements_for?(type)
  false
end