lib/restpack_serializer/serializable.rb in restpack_serializer-0.4.24 vs lib/restpack_serializer/serializable.rb in restpack_serializer-0.4.25
- old
+ new
@@ -4,10 +4,11 @@
require_relative "serializable/filterable"
require_relative "serializable/paging"
require_relative "serializable/resource"
require_relative "serializable/single"
require_relative "serializable/side_loading"
+require_relative "serializable/symbolizer"
module RestPack
module Serializer
extend ActiveSupport::Concern
mattr_accessor :class_map
@@ -44,10 +45,10 @@
end
add_custom_attributes(data)
add_links(model, data)
- data
+ Symbolizer.recursive_symbolize(data)
end
def custom_attributes
{}
end