-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
I can override adapter for specific action this way
render json: movie, adapter: :json_apiThis is not convenient enough if you use your own adapter, since adapter string is converted to adapter class in the ActiveModel namespace:
"ActiveModel::Serializer::Adapter::#{adapter_name}".safe_constantizeMy suggestion is to pass adapter as a class instead of symbol, or allow to pass both class an symbol.