Sha256: 234bbcf5b88c343c24980f53ead3103b36b9ad90441af7bf594f55ea6a075995
Contents?: true
Size: 615 Bytes
Versions: 32
Compression:
Stored size: 615 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.order('id DESC')) 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
32 entries across 32 versions & 1 rubygems