Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Create UserDecorator
class UserDecorator < Draper::Decorator
delegate_all
def as_json *args
{
name: name,
email: email
}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment