Fixed a documentation error regarding adapter key constant, added tests

for SerializableResource::use_adapter?
This commit is contained in:
bobba surendranath chowdary
2016-02-06 23:10:51 +05:30
parent f32c0d97d5
commit 68f09e59c4
4 changed files with 12 additions and 3 deletions

View File

@@ -67,7 +67,7 @@ module ActiveModel
# @api private
# Find a serializer from a class and caches the lookup.
# Preferentially retuns:
# Preferentially returns:
# 1. class name appended with "Serializer"
# 2. try again with superclass, if present
# 3. nil