From ebae7b4923183aee984757058ccde08da3b488f1 Mon Sep 17 00:00:00 2001 From: martent Date: Fri, 5 Jul 2019 11:52:15 +0200 Subject: [PATCH] Removed as a must conditional for the arrival category --- app/lib/economy/rates_for_refugee.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/lib/economy/rates_for_refugee.rb b/app/lib/economy/rates_for_refugee.rb index 251938c..22eaad6 100644 --- a/app/lib/economy/rates_for_refugee.rb +++ b/app/lib/economy/rates_for_refugee.rb @@ -55,8 +55,6 @@ def qualifies_as(skip_all_replace = true) # Schablonkategori Ankomstbarn # # MÃ¥ste: - # inte ha datum medborgarskap - # :citizenship_at # ha inskrivningsdatum # :registered # @@ -81,7 +79,7 @@ def qualifies_as(skip_all_replace = true) # :citizenship_at # Returns the number of days for the rate and the rate amount def arrival_0_17(category) - return [] if @refugee.citizenship_at? || @refugee.registered.nil? + return [] if @refugee.registered.nil? category.rates.map do |rate| interval = interval_for_arrival_0_17(category, rate)