Skip to content

Commit ca68a23

Browse files
alsemyonovbeauby
authored andcommitted
Fix an example of changing default settings (#6)
1 parent 46cfc26 commit ca68a23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/guides/deserialization/defining.html.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,10 @@ DeserializablePost.configure do |config|
180180
{ key => value }
181181
end
182182
config.default_has_one = proc do |key, rel, id, type|
183-
{ "#{key}_id}".to_sym => id, "#{key}_type".to_sym => type }
183+
{ "#{key}_id".to_sym => id, "#{key}_type".to_sym => type }
184184
end
185185
config.default_has_many = proc do |key, rel, ids, types|
186-
{ "#{key}_ids}".to_sym => ids, "#{key}_types".to_sym => types }
186+
{ "#{key}_ids".to_sym => ids, "#{key}_types".to_sym => types }
187187
end
188188
end
189189
```

0 commit comments

Comments
 (0)