2021-02-08 01:08:37 +01:00
|
|
|
class Api::V1::FinancialTransactionClassesController < Api::V1::BaseController
|
2022-10-18 17:23:18 +02:00
|
|
|
include CollectionScope
|
2021-02-08 01:08:37 +01:00
|
|
|
|
|
|
|
def index
|
|
|
|
render json: search_scope
|
|
|
|
end
|
|
|
|
|
|
|
|
def show
|
|
|
|
render json: scope.find(params.require(:id))
|
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def max_per_page
|
|
|
|
nil
|
|
|
|
end
|
|
|
|
|
|
|
|
def default_per_page
|
|
|
|
nil
|
|
|
|
end
|
|
|
|
|
|
|
|
def scope
|
|
|
|
FinancialTransactionClass.all
|
|
|
|
end
|
|
|
|
end
|