Skip to content

Instantly share code, notes, and snippets.

@ziyan-junaideen
Created February 26, 2017 14:00
Show Gist options
  • Save ziyan-junaideen/c3b4b307b15da0e1714e16d6e5d40d1f to your computer and use it in GitHub Desktop.
Save ziyan-junaideen/c3b4b307b15da0e1714e16d6e5d40d1f to your computer and use it in GitHub Desktop.
class Status::Representer
class Index < Roar::Decorator
with_statuses = Class.new(Create) do
collection :statuses, decorator: Status::Representer::Show, embed: true
end
end
class Show < Roar::Decorator
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment