File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change 22
33Breaking changes:
44
5+ - [ #1131 ] ( https://github.com/rails-api/active_model_serializers/pull/1131 ) Remove Serializer#root_name (@beauby )
56- [ #1138 ] ( https://github.com/rails-api/active_model_serializers/pull/1138 ) Introduce Adapter::Base (@bf4 )
67 * Adapters now inherit Adapter::Base. 'Adapter' is now a module, no longer a class.
78 * using a class as a namespace that you also inherit from is complicated and circular at time i.e.
Original file line number Diff line number Diff line change @@ -98,10 +98,6 @@ def self.adapter
9898 ActiveModel ::Serializer ::Adapter . lookup ( config . adapter )
9999 end
100100
101- def self . root_name
102- name . demodulize . underscore . sub ( /_serializer$/ , '' ) if name
103- end
104-
105101 def self . serializers_cache
106102 @serializers_cache ||= ThreadSafe ::Cache . new
107103 end
You can’t perform that action at this time.
0 commit comments