Logging contacts and addresses,view undeleted ones

This commit is contained in:
Andres Keskküla 2014-09-26 15:01:02 +03:00
parent bb3d2cc88a
commit d94eb22fc6
14 changed files with 263 additions and 3 deletions

View file

@ -0,0 +1,17 @@
class Admin::ContactVersionsController < AdminController
before_action :set_contact
def index
@q = Contact.search(params[:q])
@contacts = @q.result.page(params[:page])
end
def show
@versions = @contact.versions
end
private
def set_contact
@contact = Contact.find(params[:id])
end
end