Sha256: 4fb95681fe35ae3d2e89ab3df88cedc279ebe3a2d7dc9e54c2616e4b7326688f

Contents?: true

Size: 490 Bytes

Versions: 8

Compression:

Stored size: 490 Bytes

Contents

module Foobara
  class DetachedEntity < Model
    abstract

    class << self
      # Need to override this otherwise we install Model twice
      def install!
        TypeDeclarations.register_type_declaration(TypeDeclarations::Handlers::ExtendDetachedEntityTypeDeclaration.new)

        model = Namespace.global.foobara_lookup_type!(:model)
        BuiltinTypes.build_and_register!(:detached_entity, model, nil)
      end

      def reset_all
        install!
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
foobara-0.0.38 projects/detached_entity/lib/foobara/detached_entity.rb
foobara-0.0.37 projects/detached_entity/lib/foobara/detached_entity.rb
foobara-0.0.36 projects/detached_entity/lib/foobara/detached_entity.rb
foobara-0.0.35 projects/detached_entity/lib/foobara/detached_entity.rb
foobara-0.0.34 projects/detached_entity/lib/foobara/detached_entity.rb
foobara-0.0.33 projects/detached_entity/lib/foobara/detached_entity.rb
foobara-0.0.32 projects/detached_entity/lib/foobara/detached_entity.rb
foobara-0.0.31 projects/detached_entity/lib/foobara/detached_entity.rb