You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`ActiveModel::Serializer::Adapter.adapter_map`| A Hash of all known adapters { adapter_name => adapter_class } |
93
93
|`ActiveModel::Serializer::Adapter.adapters`| A (sorted) Array of all known adapter_names |
94
-
|`ActiveModel::Serializer::Adapter.get(name_or_klass)`| The adapter_class, else raises an `ActiveModel::Serializer::Adapter::UnknownAdapter` error |
95
-
|`ActiveModel::Serializer::Adapter.adapter_class(adapter)`| delegates to `ActiveModel::Serializer::Adapter.get(adapter)`|
96
-
|`ActiveModel::Serializer.adapter`| a convenience method for `ActiveModel::Serializer::Adapter.get(config.adapter)`|
94
+
|`ActiveModel::Serializer::Adapter.lookup(name_or_klass)`| The adapter_class, else raises an `ActiveModel::Serializer::Adapter::UnknownAdapter` error |
95
+
|`ActiveModel::Serializer::Adapter.adapter_class(adapter)`| delegates to `ActiveModel::Serializer::Adapter.lookup(adapter)`|
96
+
|`ActiveModel::Serializer.adapter`| a convenience method for `ActiveModel::Serializer::Adapter.lookup(config.adapter)`|
97
97
98
98
The registered adapter name is always a String, but may be looked up as a Symbol or String.
99
99
Helpfully, the Symbol or String is underscored, so that `get(:my_adapter)` and `get("MyAdapter")`
0 commit comments