lib/qonfig/settings/builder.rb in qonfig-0.13.0 vs lib/qonfig/settings/builder.rb in qonfig-0.14.0

- old
+ new

@@ -23,12 +23,13 @@ # @return [Qonfig::Settings::Callbacks] # # @api private # @since 0.13.0 def build_mutation_callbacks(data_set) + validation_callback = proc { data_set.validate! } + Qonfig::Settings::Callbacks.new.tap do |callbacks| - # NOTE: validation callbacks - callbacks.add(proc { data_set.validate! }) + callbacks.add(validation_callback) end end end end