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

Version Path
udongo-7.2.0 app/controllers/backend/forms/submissions_controller.rb
udongo-7.1.3 app/controllers/backend/forms/submissions_controller.rb
udongo-7.1.2 app/controllers/backend/forms/submissions_controller.rb
udongo-7.1.1 app/controllers/backend/forms/submissions_controller.rb
udongo-7.1.0 app/controllers/backend/forms/submissions_controller.rb
udongo-7.0.4 app/controllers/backend/forms/submissions_controller.rb
udongo-7.0.3 app/controllers/backend/forms/submissions_controller.rb
udongo-7.0.2 app/controllers/backend/forms/submissions_controller.rb
udongo-7.0.1 app/controllers/backend/forms/submissions_controller.rb
udongo-7.0.0 app/controllers/backend/forms/submissions_controller.rb
udongo-6.6.3 app/controllers/backend/forms/submissions_controller.rb
udongo-6.6.2 app/controllers/backend/forms/submissions_controller.rb