scottohara/loot

View on GitHub
app/controllers/subtransactions_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# Copyright (c) 2016 Scott O'Hara, oharagroup.net
# frozen_string_literal: true

# Subtransactions controller
class SubtransactionsController < ApplicationController
    def index
        render json: ::SplitTransaction.find(params[:transaction_id]).children
    end
end