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
I'm seeing an issue where read_only attributes aren't in the read_only metadata if e.g. I have an EventsController that uses a serializer named BasicEventSerializer (or anything that's not the default EventSerializer).
Looks like it's because RenderJsonMeta::MetadataReadOnly only looks for the default serializer:
I'm seeing an issue where read_only attributes aren't in the read_only metadata if e.g. I have an
EventsControllerthat uses a serializer namedBasicEventSerializer(or anything that's not the defaultEventSerializer).Looks like it's because
RenderJsonMeta::MetadataReadOnlyonly looks for the default serializer:daylight/rails/extensions/render_json_meta.rb
Line 68 in 010ed7b
{ "event": { "id": 24522, "created_at": "2014-11-24T16:02:08.383Z" }, "meta": { "event": { "read_only": [], "nested_resources": [] } } }