Skip to content
This repository was archived by the owner on Sep 24, 2019. It is now read-only.

Commit a195236

Browse files
committed
policial 🧌
1 parent bd5ac05 commit a195236

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/models/graph/schema.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ module Graph
66
Graph::Schema.types.values.find { |type| type.name == obj.class.name }
77
end
88

9-
id_from_object ->(object, type_definition, query_ctx) {
9+
id_from_object ->(object, type_definition, query_ctx) do
1010
URI::GID.build(app: GlobalID.app, model_name: type_definition.name, model_id: object.id)
11-
}
11+
end
1212

13-
object_from_id ->(id, query_ctx) {
13+
object_from_id ->(id, query_ctx) do
1414
gid = GlobalID.parse(id)
1515
Object.const_get(gid.model_name).find(gid.model_id)
16-
}
16+
end
1717
end
1818
end

0 commit comments

Comments
 (0)