Sha256: 2d926e4bc58d48f978bd565a267f34a581c3cbd8e17820bbc5e77b4c59e722a6
Contents?: true
Size: 598 Bytes
Versions: 15
Compression:
Stored size: 598 Bytes
Contents
class Backend::Forms::SubmissionsController < Backend::Forms::BaseController include Concerns::PaginationController before_action :find_model, except: [:index] before_action -> do breadcrumb.add t('b.forms'), backend_forms_path breadcrumb.add @form.description, edit_backend_form_path(@form) end def index @submissions = paginate(@form.submissions) end def destroy @model.destroy redirect_to backend_forms_path, notice: translate_notice(:deleted, :form_submission) end def find_model @model = FormSubmission.find(params[:id]) end end
Version data entries
15 entries across 15 versions & 1 rubygems