mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
18 lines
335 B
Ruby
18 lines
335 B
Ruby
class Admin::ContactVersionsController < AdminController
|
|
before_action :set_contact, only: [:show]
|
|
|
|
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
|