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