lib/representable/serializer.rb in representable-1.8.0 vs lib/representable/serializer.rb in representable-1.8.1

- old
+ new

@@ -18,9 +18,11 @@ private def serialize(object, user_options) return object unless @binding.representable? - object.send(@binding.serialize_method, user_options.merge!({:wrap => false})) + @binding.send(:evaluate_option, :serialize, object) do + object.send(@binding.serialize_method, user_options.merge!({:wrap => false})) + end end end end \ No newline at end of file