lib/representable/coercion.rb in representable-1.8.1 vs lib/representable/coercion.rb in representable-1.8.2

- old
+ new

@@ -1,9 +1,10 @@ require "virtus" module Representable::Coercion class Coercer - include Virtus + virtus_coercer = Virtus.respond_to?(:model) ? Virtus.model : Virtus + include virtus_coercer def coerce(name, v) # TODO: test me. # set and get the value as i don't know where exactly coercion happens in virtus. send("#{name}=", v) send(name)