Preselect default values for new record #2776

This commit is contained in:
Priit Tark 2015-07-21 19:05:39 +03:00
parent dec7fcee13
commit cc672a420b
3 changed files with 7 additions and 11 deletions

View file

@ -144,13 +144,6 @@ module Depp
end
end
def initialize(attributes = {})
super
self.country_code = 'EE' if country_code.blank?
self.ident_type = 'bic' if ident_type.blank?
self.ident_country_code = 'EE' if ident_country_code.blank?
end
def save
create_xml = Depp::Contact.epp_xml.create(
{