Correct typos

This commit is contained in:
Benjamin Fleischer 2016-08-16 18:13:37 -05:00
parent 5f3bdcc87c
commit d66e272994
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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