mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
Correct typos
This commit is contained in:
parent
5f3bdcc87c
commit
d66e272994
@ -5,7 +5,7 @@ module ActiveModelSerializers
|
|||||||
# {http://jsonapi.org/format/#document-resource-object-related-resource-links Document Resource Object Related Resource Links}
|
# {http://jsonapi.org/format/#document-resource-object-related-resource-links Document Resource Object Related Resource Links}
|
||||||
# {http://jsonapi.org/format/#document-links Document Links}
|
# {http://jsonapi.org/format/#document-links Document Links}
|
||||||
# {http://jsonapi.org/format/#document-resource-object-linkage Document Resource Relationship Linkage}
|
# {http://jsonapi.org/format/#document-resource-object-linkage Document Resource Relationship Linkage}
|
||||||
# {http://jsonapi.org/format/#document-meta Docment Meta}
|
# {http://jsonapi.org/format/#document-meta Document Meta}
|
||||||
def initialize(parent_serializer, serializer, serializable_resource_options, args = {})
|
def initialize(parent_serializer, serializer, serializable_resource_options, args = {})
|
||||||
@object = parent_serializer.object
|
@object = parent_serializer.object
|
||||||
@scope = parent_serializer.scope
|
@scope = parent_serializer.scope
|
||||||
|
|||||||
@ -9,12 +9,12 @@ module SerializationTesting
|
|||||||
ActiveModelSerializers::SerializableResource.new(obj).to_json
|
ActiveModelSerializers::SerializableResource.new(obj).to_json
|
||||||
end
|
end
|
||||||
|
|
||||||
def with_namespace_separator(seperator)
|
def with_namespace_separator(separator)
|
||||||
original_seperator = ActiveModelSerializers.config.jsonapi_namespace_separator
|
original_separator = ActiveModelSerializers.config.jsonapi_namespace_separator
|
||||||
ActiveModelSerializers.config.jsonapi_namespace_separator = seperator
|
ActiveModelSerializers.config.jsonapi_namespace_separator = separator
|
||||||
yield
|
yield
|
||||||
ensure
|
ensure
|
||||||
ActiveModelSerializers.config.jsonapi_namespace_separator = original_seperator
|
ActiveModelSerializers.config.jsonapi_namespace_separator = original_separator
|
||||||
end
|
end
|
||||||
|
|
||||||
# Aliased as :with_configured_adapter to clarify that
|
# Aliased as :with_configured_adapter to clarify that
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user