lib/representable/definition.rb in representable-2.4.1 vs lib/representable/definition.rb in representable-3.0.0
- old
+ new
@@ -1,7 +1,7 @@
require "uber/options"
-require "representable/parse_strategies"
+require "representable/populator"
module Representable
# Created at class compile time. Keeps configuration options for one property.
class Definition < ::Declarative::Definitions::Definition
@@ -86,10 +86,9 @@
def setup!(options, &block)
handle_extend!(options)
handle_as!(options)
# DISCUSS: we could call more macros here (e.g. for :nested).
- Representable::ParseStrategy.apply!(options)
Representable::Populator.apply!(options)
yield options if block_given?
@options.merge!(options)