fixed country depricated

This commit is contained in:
Priit Tark 2015-05-08 14:35:09 +03:00
parent 08cb700069
commit 66c9e5d66b
4 changed files with 2 additions and 4 deletions

View file

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