From b480c823611365fc3c4ffda769090d15a4fd5340 Mon Sep 17 00:00:00 2001 From: Muhammad Nawzad Date: Fri, 10 Nov 2023 13:00:53 +0300 Subject: [PATCH] Sets configurations by default --- lib/schemable/definition.rb | 4 ++-- sig/schemable/definition.rbs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/schemable/definition.rb b/lib/schemable/definition.rb index 7a202f7..e90a9f6 100644 --- a/lib/schemable/definition.rb +++ b/lib/schemable/definition.rb @@ -2,8 +2,8 @@ module Schemable class Definition attr_reader :configuration - def initialize(configuration) - @configuration = configuration + def initialize + @configuration = Schemable.configuration end def serializer diff --git a/sig/schemable/definition.rbs b/sig/schemable/definition.rbs index cb29332..bc06f3c 100644 --- a/sig/schemable/definition.rbs +++ b/sig/schemable/definition.rbs @@ -3,7 +3,7 @@ module Schemable attr_accessor configuration: Configuration # Initializes the definition with the configuration. - def initialize: (Configuration) -> void + def initialize: -> void # Returns the attributes that are nullable in the request/response body. This means that they can be present in the request/response body but they can be null. # They are not required to be present in the request body.