26 lines
372 B
Ruby
26 lines
372 B
Ruby
class Api::V1::FinancialTransactionClassesController < Api::V1::BaseController
|
|
include Concerns::CollectionScope
|
|
|
|
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
|