Revert "Registry 569"

This commit is contained in:
Timo Võhmar 2017-10-05 16:08:47 +03:00 committed by GitHub
parent 9565f23e68
commit 4786dbb943
50 changed files with 323 additions and 2463 deletions

View file

@ -2,7 +2,6 @@ module Admin
class ContactsController < BaseController
load_and_authorize_resource
before_action :set_contact, only: [:show]
helper_method :ident_types
def index
params[:q] ||= {}
@ -80,9 +79,5 @@ module Admin
params[:q][:created_at_lteq] = ca_cache
end
def ident_types
Contact::Ident.types
end
end
end

View file

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