Commit ea1b8cc

mokha <mokha@cisco.com>
2019-01-08 19:54:26
yield the builder
1 parent 910d96f
Changed files (2)
lib/scim/kit/v2/configuration.rb
@@ -41,7 +41,7 @@ module Scim
 
         def initialize
           builder = Builder.new
-          yield builder
+          yield builder if block_given?
           builder.apply_to(self)
         end
       end
lib/scim/kit/v2.rb
@@ -27,7 +27,9 @@ module Scim
         end
 
         def configure
-          yield configuration
+          builder = ::Scim::Kit::V2::Configuration::Builder.new
+          yield builder
+          builder.apply_to(configuration)
         end
       end
     end