mirror of
https://github.com/ditkrg/schemable.git
synced 2026-01-22 22:26:41 +00:00
18 lines
501 B
Plaintext
18 lines
501 B
Plaintext
module Schemable
|
|
class Configuration
|
|
attr_accessor orm: Symbol
|
|
attr_accessor timestamps: bool
|
|
attr_accessor float_as_string: bool
|
|
attr_accessor decimal_as_string: bool
|
|
attr_accessor disable_factory_bot: bool
|
|
attr_accessor custom_defined_enum_method: Symbol?
|
|
attr_accessor custom_type_mappers: Hash[Symbol, any]
|
|
|
|
def initialize: -> void
|
|
|
|
def add_custom_type_mapper: (Symbol, Hash[Symbol, any]) -> void
|
|
|
|
def type_mapper: (Symbol) -> Hash[Symbol, any]
|
|
end
|
|
end
|