Skip to content

Instantly share code, notes, and snippets.

@matthutchinson
Created May 9, 2017 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthutchinson/a1c5283137b3dc9d2324f4ed6bd7df56 to your computer and use it in GitHub Desktop.
Save matthutchinson/a1c5283137b3dc9d2324f4ed6bd7df56 to your computer and use it in GitHub Desktop.
class HomeSerializer < ApplicationSerializer
def _links
{
order_volume_forecasts: { href: order_volume_forecasts_url }
slots: { href: slots_url },
micro_contracts: { href: micro_contracts_url }
}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment