mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 11:38:30 +02:00
Fix CC issues
This commit is contained in:
parent
d4dc39bf22
commit
11d97358c1
16 changed files with 78 additions and 60 deletions
|
@ -30,15 +30,15 @@ module Billing
|
|||
'6 months' => 6.months,
|
||||
'9 months' => 9.months,
|
||||
'1 year' => 1.year,
|
||||
'2 years'=> 2.years,
|
||||
'3 years'=> 3.years,
|
||||
'4 years'=> 4.years,
|
||||
'5 years'=> 5.years,
|
||||
'6 years'=> 6.years,
|
||||
'7 years'=> 7.years,
|
||||
'8 years'=> 8.years,
|
||||
'9 years'=> 9.years,
|
||||
'10 years'=> 10.years,
|
||||
'2 years' => 2.years,
|
||||
'3 years' => 3.years,
|
||||
'4 years' => 4.years,
|
||||
'5 years' => 5.years,
|
||||
'6 years' => 6.years,
|
||||
'7 years' => 7.years,
|
||||
'8 years' => 8.years,
|
||||
'9 years' => 9.years,
|
||||
'10 years' => 10.years,
|
||||
}
|
||||
end
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ module EppErrors
|
|||
epp_errors.import parent_error
|
||||
end
|
||||
end
|
||||
epp_errors.each { |epp_error| errors.import epp_error}
|
||||
epp_errors.each { |epp_error| errors.import epp_error }
|
||||
errors
|
||||
end
|
||||
|
||||
|
@ -49,13 +49,16 @@ module EppErrors
|
|||
multi = [:has_and_belongs_to_many, :has_many]
|
||||
|
||||
epp_errors = ActiveModel::Errors.new(self)
|
||||
send(attr).each do |x|
|
||||
x.errors.each do |error|
|
||||
x.collect_parent_errors(error.attribute, error.message).each do |parent_error|
|
||||
epp_errors.import parent_error
|
||||
|
||||
if multi.include?(macro)
|
||||
send(attr).each do |x|
|
||||
x.errors.each do |error|
|
||||
x.collect_parent_errors(error.attribute, error.message).each do |parent_error|
|
||||
epp_errors.import parent_error
|
||||
end
|
||||
end
|
||||
end
|
||||
end if multi.include?(macro)
|
||||
end
|
||||
|
||||
epp_errors
|
||||
end
|
||||
|
|
|
@ -14,7 +14,7 @@ class Invoice
|
|||
private
|
||||
|
||||
def invoice_html
|
||||
ApplicationController.render(template: 'invoice/pdf', assigns: { invoice: invoice } )
|
||||
ApplicationController.render(template: 'invoice/pdf', assigns: { invoice: invoice })
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue