Sha256: c3c77975dc9158efea5244e26cf29be1304650e93c72e911afeb1f7c6890600a

Contents?: true

Size: 688 Bytes

Versions: 26

Compression:

Stored size: 688 Bytes

Contents

require "date"
require "time"
require "bigdecimal"

module Foobara
  class Model
    class << self
      def install!
        TypeDeclarations.register_type_declaration(TypeDeclarations::Handlers::ExtendModelTypeDeclaration.new)
        TypeDeclarations.register_type_declaration(TypeDeclarations::Handlers::ExtendRegisteredModelTypeDeclaration.new)

        atomic_duck = Namespace.global.foobara_lookup_type!(:atomic_duck)
        BuiltinTypes.build_and_register!(:model, atomic_duck, nil)
        # address = build_and_register!(:address, model)
        # us_address = build_and_register!(:us_address, model)
      end

      def reset_all
        install!
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
foobara-0.0.26 projects/model/lib/foobara/model.rb
foobara-0.0.25 projects/model/lib/foobara/model.rb
foobara-0.0.24 projects/model/lib/foobara/model.rb
foobara-0.0.23 projects/model/lib/foobara/model.rb
foobara-0.0.22 projects/model/lib/foobara/model.rb
foobara-0.0.21 projects/model/lib/foobara/model.rb
foobara-0.0.20 projects/model/lib/foobara/model.rb
foobara-0.0.19 projects/model/lib/foobara/model.rb
foobara-0.0.18 projects/model/lib/foobara/model.rb
foobara-0.0.17 projects/model/lib/foobara/model.rb
foobara-0.0.16 projects/model/lib/foobara/model.rb
foobara-0.0.15 projects/model/lib/foobara/model.rb
foobara-0.0.14 projects/model/lib/foobara/model.rb
foobara-0.0.13 projects/model/lib/foobara/model.rb
foobara-0.0.12 projects/model/lib/foobara/model.rb
foobara-0.0.11 projects/model/lib/foobara/model.rb
foobara-0.0.10 projects/model/lib/foobara/model.rb
foobara-0.0.9 projects/model/lib/foobara/model.rb
foobara-0.0.8 projects/model/lib/foobara/model.rb
foobara-0.0.7 projects/model/lib/foobara/model.rb