mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Logging contacts and addresses,view undeleted ones
This commit is contained in:
parent
bb3d2cc88a
commit
d94eb22fc6
14 changed files with 263 additions and 3 deletions
17
app/controllers/admin/contact_versions_controller.rb
Normal file
17
app/controllers/admin/contact_versions_controller.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue