Sha256: d06f25d63f9b3ff526bedc985cd7fd4f1391f2ab505bee494bfe926eec03d2a6

Contents?: true

Size: 461 Bytes

Versions: 8

Compression:

Stored size: 461 Bytes

Contents

# frozen_string_literal: true
require_dependency 'c/admin_controller'

module C
  class Admin::EnquiriesController < AdminController
    load_and_authorize_resource class: C::Enquiry

    def index
      @enquiries = filter_and_paginate(@enquiries, 'created_at desc')
    end

    def show; end

    def destroy
      @enquiry.destroy
      respond_to do |format|
        format.js
        format.html { redirect_to enquiries_path }
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cd2_catton_cms-1.1.35 app/controllers/c/admin/enquiries_controller.rb
cd2_catton_cms-1.1.34 app/controllers/c/admin/enquiries_controller.rb
cd2_catton_cms-1.1.33 app/controllers/c/admin/enquiries_controller.rb
cd2_catton_cms-1.1.32 app/controllers/c/admin/enquiries_controller.rb
cd2_catton_cms-1.1.31 app/controllers/c/admin/enquiries_controller.rb
cd2_catton_cms-1.1.30 app/controllers/c/admin/enquiries_controller.rb
cd2_catton_cms-1.1.20 app/controllers/c/admin/enquiries_controller.rb
cd2_catton_cms-1.1.10 app/controllers/c/admin/enquiries_controller.rb