Skip to content

Conversation

@toastercup
Copy link
Member

Abstract gravatar URL generation to Model method, rather than block in Entity, so that it can be used outside of API Resource classes

…n Entity, so that it can be used outside of API Resource classes
@toastercup toastercup merged commit 0360b9c into develop May 27, 2016
@toastercup toastercup deleted the gravatar-abstraction branch May 27, 2016 21:34
end
expose :gravatar, documentation: { type: "String", desc: "Gravatar URL" }
expose :tenant_id, documentation: { type: "Integer", desc: "User Tenant ID" } # Retained for backwards comparability. TODO: Remove.
expose :tenant, with: '::V1::Entities::Tenant', documentation: { type: "Tenant", desc: "User Tenant" }
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additionally, I exposed the entire Tenant entity in the full representation of a User entity, in addition to the now-legacied tenant_id field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants