app/models/unidom/certificate/china/business_license.rb in unidom-certificate-china-0.5 vs app/models/unidom/certificate/china/business_license.rb in unidom-certificate-china-0.6

- old
+ new

@@ -14,8 +14,10 @@ validates :name, presence: true, length: { in: 2..columns_hash['name'].limit } validates :legal_representative_name, presence: true, length: { in: 2..columns_hash['legal_representative_name'].limit } validates :issuing_authority_name, allow_blank: true, length: { in: 2..columns_hash['issuing_authority_name'].limit } + has_many :certificatings, class_name: 'Unidom::Certificate::Certificating', as: :certification + scope :registration_number_is, ->(registration_number) { where registration_number: registration_number } end