Ensure generator picks up ApplicationSerializer

ApplicationSerializer could exist, but not be loaded. So, we check
existence by looking at the filesystem instead of defined?.

Fixes https://github.com/rails-api/active_model_serializers/issues/1890
This commit is contained in:
Lee Richmond
2016-09-05 09:48:06 -04:00
parent 1dc2b74059
commit 3f16b75a68
3 changed files with 24 additions and 6 deletions

View File

@@ -7,6 +7,7 @@ Breaking changes:
Fixes:
- [#1887](https://github.com/rails-api/active_model_serializers/pull/1887) Make the comment reflect what the function does (@johnnymo87)
- [#1890](https://github.com/rails-api/active_model_serializers/issues/1890) Ensure generator inherits from ApplicationSerializer when available (@richmolj)
Features: