mirror of
https://github.com/internetee/registry.git
synced 2025-07-02 01:03:35 +02:00
fixed country depricated
This commit is contained in:
parent
08cb700069
commit
66c9e5d66b
4 changed files with 2 additions and 4 deletions
|
@ -9,6 +9,7 @@ class Registrar::SessionsController < ::SessionsController
|
|||
@depp_user = Depp::User.new
|
||||
end
|
||||
|
||||
# rubocop:disabled Metrics/PerceivedComplexity
|
||||
def create
|
||||
@depp_user = Depp::User.new(params[:depp_user].merge(
|
||||
pki: request.env['HTTP_SSL_CLIENT_S_DN_CN'].present?
|
||||
|
@ -32,6 +33,7 @@ class Registrar::SessionsController < ::SessionsController
|
|||
render 'login'
|
||||
end
|
||||
end
|
||||
# rubocop:enabled Metrics/PerceivedComplexity
|
||||
|
||||
def login_mid
|
||||
@user = User.new
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
class Address < ActiveRecord::Base
|
||||
include Versions # version/address_version.rb
|
||||
belongs_to :country_deprecated, foreign_key: :country_id
|
||||
|
||||
LOCAL_TYPE_SHORT = 'loc'
|
||||
INTERNATIONAL_TYPE_SHORT = 'int'
|
||||
|
|
|
@ -5,7 +5,6 @@ class AdminUser < User
|
|||
validates :email, presence: true
|
||||
|
||||
validate :validate_identity_code, if: -> { country_code == 'EE' }
|
||||
belongs_to :country_deprecated, foreign_key: :country_id
|
||||
|
||||
ROLES = %w(user customer_service admin)
|
||||
|
||||
|
|
|
@ -10,8 +10,6 @@ class Registrar < ActiveRecord::Base
|
|||
has_many :nameservers, through: :domains
|
||||
has_many :whois_records
|
||||
|
||||
belongs_to :country_deprecated, foreign_key: :country_id
|
||||
|
||||
validates :name, :reg_no, :country_code, :email, :code, presence: true
|
||||
validates :name, :reg_no, :reference_no, :code, uniqueness: true
|
||||
validate :forbidden_codes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue