Created
September 11, 2014 18:19
-
-
Save pzaich/cd577f4d3355a65815cc to your computer and use it in GitHub Desktop.
my_custom_serializer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class MyCustomSerializerClass < ActiveModel::Serializer | |
| class << self | |
| # customize the associated object to the serializer | |
| def model_class | |
| SomeOtherClass | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment