File tree 2 files changed +1
-4
lines changed 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
Breaking changes:
4
4
5
+ - [ #1131 ] ( https://github.com/rails-api/active_model_serializers/pull/1131 ) Remove Serializer#root_name (@beauby )
5
6
- [ #1138 ] ( https://github.com/rails-api/active_model_serializers/pull/1138 ) Introduce Adapter::Base (@bf4 )
6
7
* Adapters now inherit Adapter::Base. 'Adapter' is now a module, no longer a class.
7
8
* 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
98
98
ActiveModel ::Serializer ::Adapter . lookup ( config . adapter )
99
99
end
100
100
101
- def self . root_name
102
- name . demodulize . underscore . sub ( /_serializer$/ , '' ) if name
103
- end
104
-
105
101
def self . serializers_cache
106
102
@serializers_cache ||= ThreadSafe ::Cache . new
107
103
end
You can’t perform that action at this time.
0 commit comments