Class: Api::V1::FinancialTransactionClassesController

Inherits:
BaseController
  • Object
show all
Includes:
Concerns::CollectionScope
Defined in:
app/controllers/api/v1/financial_transaction_classes_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



4
5
6
# File 'app/controllers/api/v1/financial_transaction_classes_controller.rb', line 4

def index
  render json: search_scope
end

#showObject



8
9
10
# File 'app/controllers/api/v1/financial_transaction_classes_controller.rb', line 8

def show
  render json: scope.find(params.require(:id))
end