Merge pull request #577 from internetee/registry-569

Registry 569
This commit is contained in:
Timo Võhmar 2017-10-05 15:47:28 +03:00 committed by GitHub
commit 9565f23e68
50 changed files with 2463 additions and 323 deletions

View file

@ -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