Skip to content

Commit bc15797

Browse files
tobias-grasselgebhardt
authored andcommitted
Fix typo in config_description hash key
Typo “seriserialization_options” → “serialization_options”. I couldn't find any references to this misspelt key in the current codebase, neither any GitHub search result besides forks of jsonapi-resources 😄 So I presume it's safe to correct it. The only usage of the affected `config_description` method I found ends up using the keys as [part of a cache key](https://github.com/cerebris/jsonapi-resources/blob/d87cd2d2e80ab7660081c32db2303f196860b060/lib/jsonapi/resource_set.rb#L28), which won't be affected either.
1 parent a51d07f commit bc15797

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jsonapi/resource_serializer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def config_key(resource_klass)
131131
def config_description(resource_klass)
132132
{
133133
class_name: self.class.name,
134-
seriserialization_options: serialization_options.sort.map(&:as_json),
134+
serialization_options: serialization_options.sort.map(&:as_json),
135135
supplying_attribute_fields: supplying_attribute_fields(resource_klass).sort,
136136
supplying_relationship_fields: supplying_relationship_fields(resource_klass).sort,
137137
link_builder_base_url: link_builder.base_url,

0 commit comments

Comments
 (0)