mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 16:53:37 +02:00
Merge branch 'migrate-fabricators-to-factory-bot-factories' into registry-343
This commit is contained in:
commit
411af16f9c
58 changed files with 2505 additions and 432 deletions
|
@ -2,6 +2,7 @@ module Admin
|
|||
class ContactsController < BaseController
|
||||
load_and_authorize_resource
|
||||
before_action :set_contact, only: [:show]
|
||||
helper_method :ident_types
|
||||
|
||||
def index
|
||||
params[:q] ||= {}
|
||||
|
@ -79,5 +80,9 @@ module Admin
|
|||
|
||||
params[:q][:created_at_lteq] = ca_cache
|
||||
end
|
||||
|
||||
def ident_types
|
||||
Contact::Ident.types
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue