Skip to content

Commit d66e272

Browse files
committed
Correct typos
1 parent 5f3bdcc commit d66e272

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/active_model_serializers/adapter/json_api/relationship.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class Relationship
55
# {http://jsonapi.org/format/#document-resource-object-related-resource-links Document Resource Object Related Resource Links}
66
# {http://jsonapi.org/format/#document-links Document Links}
77
# {http://jsonapi.org/format/#document-resource-object-linkage Document Resource Relationship Linkage}
8-
# {http://jsonapi.org/format/#document-meta Docment Meta}
8+
# {http://jsonapi.org/format/#document-meta Document Meta}
99
def initialize(parent_serializer, serializer, serializable_resource_options, args = {})
1010
@object = parent_serializer.object
1111
@scope = parent_serializer.scope

test/support/serialization_testing.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ def generate_cached_serializer(obj)
99
ActiveModelSerializers::SerializableResource.new(obj).to_json
1010
end
1111

12-
def with_namespace_separator(seperator)
13-
original_seperator = ActiveModelSerializers.config.jsonapi_namespace_separator
14-
ActiveModelSerializers.config.jsonapi_namespace_separator = seperator
12+
def with_namespace_separator(separator)
13+
original_separator = ActiveModelSerializers.config.jsonapi_namespace_separator
14+
ActiveModelSerializers.config.jsonapi_namespace_separator = separator
1515
yield
1616
ensure
17-
ActiveModelSerializers.config.jsonapi_namespace_separator = original_seperator
17+
ActiveModelSerializers.config.jsonapi_namespace_separator = original_separator
1818
end
1919

2020
# Aliased as :with_configured_adapter to clarify that

0 commit comments

Comments
 (0)