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 }`|
153
-
|`ActiveModel::Serializer::Adapter.adapters`| A (sorted) Array of all known `adapter_names`|
154
-
|`ActiveModel::Serializer::Adapter.lookup(name_or_klass)`| The `adapter_class`, else raises an `ActiveModel::Serializer::Adapter::UnknownAdapter` error |
155
-
|`ActiveModel::Serializer::Adapter.adapter_class(adapter)`| Delegates to `ActiveModel::Serializer::Adapter.lookup(adapter)`|
156
-
|`ActiveModel::Serializer.adapter`| A convenience method for `ActiveModel::Serializer::Adapter.lookup(config.adapter)`|
152
+
|`ActiveModelSerializers::Adapter.adapter_map`| A Hash of all known adapters `{ adapter_name => adapter_class }`|
153
+
|`ActiveModelSerializers::Adapter.adapters`| A (sorted) Array of all known `adapter_names`|
154
+
|`ActiveModelSerializers::Adapter.lookup(name_or_klass)`| The `adapter_class`, else raises an `ActiveModelSerializers::Adapter::UnknownAdapter` error |
155
+
|`ActiveModelSerializers::Adapter.adapter_class(adapter)`| Delegates to `ActiveModelSerializers::Adapter.lookup(adapter)`|
156
+
|`ActiveModelSerializers::Adapter.configured_adapter`| A convenience method for `ActiveModelSerializers::Adapter.lookup(config.adapter)`|
157
157
158
158
The registered adapter name is always a String, but may be looked up as a Symbol or String.
159
159
Helpfully, the Symbol or String is underscored, so that `get(:my_adapter)` and `get("MyAdapter")`
160
160
may both be used.
161
161
162
-
For more information, see [the Adapter class on GitHub](https://github.com/rails-api/active_model_serializers/blob/master/lib/active_model/serializer/adapter.rb)
162
+
For more information, see [the Adapter class on GitHub](https://github.com/rails-api/active_model_serializers/blob/master/lib/active_model_serializers/adapter.rb)
0 commit comments