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

View file

@ -152,9 +152,6 @@ class EppController < ApplicationController
code: '1',
msg: 'handle_errors was executed when there were actually no errors'
}
# rubocop:disable Rails/Output
puts "FULL MESSAGE: #{obj.errors.full_messages} #{obj.errors.inspect}" if Rails.env.test?
# rubocop: enable Rails/Output
end
@errors.uniq!

View file

@ -2,6 +2,7 @@ class Registrar
class ContactsController < DeppController
before_action :init_epp_contact
helper_method :address_processing?
helper_method :ident_types
def index
authorize! :view, Depp::Contact
@ -140,5 +141,9 @@ class Registrar
def address_processing?
Contact.address_processing?
end
def ident_types
Contact::Ident.types
end
end
end