lib/representable/definition.rb in representable-3.0.2 vs lib/representable/definition.rb in representable-3.0.3

- old
+ new

@@ -1,6 +1,5 @@ -require "uber/options" require "representable/populator" module Representable # Created at class compile time. Keeps configuration options for one property. class Definition < ::Declarative::Definitions::Definition @@ -100,10 +99,10 @@ # at runtime, its value never changes). def runtime_options!(options) @runtime_options = {} for name, value in options - value = Uber::Options::Value.new(value) if dynamic_options.include?(name) + value = ::Declarative::Option(value, instance_exec: true, callable: Uber::Callable) if dynamic_options.include?(name) @runtime_options[name] = value end end def dynamic_options