mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 23:24:48 +02:00
added filter for domain and contact histories
This commit is contained in:
parent
34e16ab8e8
commit
15c606f76a
4 changed files with 28 additions and 26 deletions
|
@ -7,11 +7,9 @@ module Admin
|
|||
def index
|
||||
params[:q] ||= {}
|
||||
|
||||
@q = Version::ContactVersion.ransack(params[:q])
|
||||
@versions = @q.result.page(params[:page])
|
||||
search_params = params[:q].deep_dup
|
||||
search_params = params[:q].deep_dup.except(:created_at_gteq, :created_at_lteq)
|
||||
|
||||
where_s = "1=1"
|
||||
where_s = '1=1'
|
||||
|
||||
search_params.each do |key, value|
|
||||
next if value.empty?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue