lib/reform/form/prepopulate.rb in reform-2.5.0 vs lib/reform/form/prepopulate.rb in reform-2.6.0

- old
+ new

@@ -11,10 +11,10 @@ private def prepopulate_local!(options) schema.each do |dfn| next unless block = dfn[:prepopulator] - Declarative::Option(block, instance_exec: true).(self, options) + ::Representable::Option(block).(exec_context: self, keyword_arguments: options) end end def prepopulate_nested!(options) schema.each(twin: true) do |dfn|