Skip to content

Instantly share code, notes, and snippets.

@nmcolome
Created April 6, 2018 03:23
Show Gist options
  • Save nmcolome/20d23f1ca49a8fcaf416a674dfd9593f to your computer and use it in GitHub Desktop.
Save nmcolome/20d23f1ca49a8fcaf416a674dfd9593f to your computer and use it in GitHub Desktop.
class Api::V1::ProfitAndLossController < ApplicationController
def index
render json: Sale.get_profit_and_loss, each_serializer: ProfitAndLossSerializer
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment