Merge branch 'CheckMateIO-bugfix/fagment-caching-breaks-type-setting'

Squashed commits that were done in other PR

Follow up needs:
- Changelog
This commit is contained in:
Benjamin Fleischer
2016-02-09 22:35:45 -06:00
2 changed files with 17 additions and 1 deletions

View File

@@ -94,6 +94,10 @@ module ActiveModel
cached.constantize.cache(klass._cache_options)
# Preserve the type setting in the cached/non-cached serializer classes
cached.constantize.type(klass._type)
non_cached.constantize.type(klass._type)
cached.constantize.fragmented(serializer)
non_cached.constantize.fragmented(serializer)