mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 03:30:33 +02:00
108869472-changes_for_real_data
This commit is contained in:
parent
518b7139f0
commit
7ba760a884
4 changed files with 12 additions and 12 deletions
|
@ -30,7 +30,7 @@ class Admin::ContactVersionsController < AdminController
|
|||
def show
|
||||
per_page = 7
|
||||
@version = ContactVersion.find(params[:id])
|
||||
@q = ContactVersion.where(item_id: @version.item_id).search
|
||||
@q = ContactVersion.where(item_id: @version.item_id).order(created_at: :asc).search
|
||||
@versions = @q.result.page(params[:page])
|
||||
@versions = @versions.per(per_page)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue