-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow for type attribute #1037
allow for type attribute #1037
Conversation
|
||
def test_type_attribute_override | ||
attribute_serializer = Class.new(ActiveModel::Serializer) do | ||
attribute :id, key: :type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: it's not an override anymore if the internal name is now 'json_api_type', right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very true.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👼
@lanej Could you please rebase and squash it? 😁 |
* don't overshadow serializer variable
* "namespace" json_api specific type method
3b45bd1
to
033ce8e
Compare
@joaomdmoura rebased. |
Great, I'm merging it. |
No description provided.