lib/representable/serializer.rb in representable-3.0.3 vs lib/representable/serializer.rb in representable-3.0.4
- old
+ new
@@ -49,6 +49,6 @@
As = ->(input, options) { options[:binding].evaluate_option(:as, input, options) }
# Warning: don't rely on AssignAs/AssignName, i am not sure if i leave that as functions.
AssignAs = ->(input, options) { options[:as] = As.(input, options); input }
AssignName = ->(input, options) { options[:as] = options[:binding].name; input }
-end
\ No newline at end of file
+end