Sha256: 237734216d6082a1ba658c3a8d9a501f1d814387b170fbb53a855fa76ef2044f
Contents?: true
Size: 683 Bytes
Versions: 26
Compression:
Stored size: 683 Bytes
Contents
module Foobara module Persistence class << self def reset_all @tables_for_entity_class_name = @bases = @default_crud_driver = @default_base = nil EntityBase::Transaction::Concerns::EntityCallbackHandling.reset_all EntityBase::Transaction.reset_all Util.descendants(Foobara::Entity).each do |entity_class| if entity_class.instance_variable_defined?(:@entity_base) entity_class.remove_instance_variable(:@entity_base) end end end def install! EntityBase::Transaction::Concerns::EntityCallbackHandling.install! EntityBase::Transaction.install! end end end end
Version data entries
26 entries across 26 versions & 1 rubygems