mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
17 lines
319 B
Ruby
17 lines
319 B
Ruby
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
|