lib/restpack_serializer/serializable.rb in restpack_serializer-0.6.2 vs lib/restpack_serializer/serializable.rb in restpack_serializer-0.6.3
- old
+ new
@@ -5,11 +5,10 @@
require_relative "serializable/paging"
require_relative "serializable/resource"
require_relative "serializable/single"
require_relative "serializable/side_loading"
require_relative "serializable/side_load_data_builder"
-require_relative "serializable/symbolizer"
require_relative "serializable/sortable"
module RestPack
module Serializer
extend ActiveSupport::Concern
@@ -51,15 +50,10 @@
add_links(model, data) unless self.class.associations.empty?
data
end
- def as_json_symbolized(model, context = {})
- data = as_json(model, context)
- Symbolizer.recursive_symbolize(data)
- end
-
def custom_attributes
{}
end
private
@@ -100,13 +94,9 @@
new.as_json(models, context)
end
def as_json(model, context = {})
new.as_json(model, context)
- end
-
- def as_json_symbolized(model, context = {})
- new.as_json_symbolized(model, context)
end
def serialize(models, context = {})
models = [models] unless models.kind_of?(Array)