Sha256: 2a1cbe61c88ca092205efd5d7bae004e009371362e75b9cf88efde1248ca1a7b
Contents?: true
Size: 695 Bytes
Versions: 3
Compression:
Stored size: 695 Bytes
Contents
# frozen_string_literal: true module SolidusAdmin class ReimbursementTypesController < SolidusAdmin::BaseController include SolidusAdmin::ControllerHelpers::Search def index reimbursement_types = apply_search_to( Spree::ReimbursementType.unscoped.order(id: :desc), param: :q, ) set_page_and_extract_portion_from(reimbursement_types) respond_to do |format| format.html { render component('reimbursement_types/index').new(page: @page) } end end private def reimbursement_type_params params.require(:reimbursement_type).permit(:reimbursement_type_id, permitted_reimbursement_type_attributes) end end end
Version data entries
3 entries across 3 versions & 1 rubygems