Sha256: 20ed339254f571f6b9f12f7c1206245cd677630b316942ad519fe2f6840fc196
Contents?: true
Size: 422 Bytes
Versions: 15
Compression:
Stored size: 422 Bytes
Contents
require_dependency "pages_cms/application_controller" module PagesCms class Admin::ContactsController < ApplicationController before_action :logged_in_admin before_action :selected_account def index @contacts = current_account.contacts end def destroy Contact.find(params[:id]).destroy flash[:success] = 'Contact deleted' redirect_to admin_contacts_path end end end
Version data entries
15 entries across 15 versions & 1 rubygems