lib/eco/api/organization/person_schemas.rb in eco-helpers-2.0.18 vs lib/eco/api/organization/person_schemas.rb in eco-helpers-2.0.19

- old
+ new

@@ -26,10 +26,14 @@ def to_name(id) schema(id)&.name end def schema(id_name) - @by_id.fetch(schema_id(id_name), nil) + self[id_name] + end + + def [](id_name) + @by_id[schema_id(id_name)] end private def schema_name(id_name)